On 8 October 2012 11:32, Ilya Basin wrote: > Is there a flag to turn this warning into an error? Is there a common > way to find the warning flag from a message? If you use a modern version of GCC it tells you the flag that controls each warning. In this case it tells you it is "enabled by default" so there is no flag controlling this warning.