Type qualifier on return type is meaningless?

Type qualifier on return type is meaningless?

The new compiler (9.0) flags the following code with a "warning #858: type qualifier on return type is meaningless":

inline volatile double
limit_precision(double v) {
volatile double x = v;
return x;
}

However, I am not sure I understand what is meant here. Is it the standard that says that? If so, can anyone point me to the relevant sections of the standard document?
All the best,

Roberto

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.