I tried "-Werror" and it seems that it is not working.
Make all warnings into errors.
I know that my kernels produce warnings like:
warning: double-precision constant is represented as
single-precision constant because double is not enabled
However "-Werror" does not turn those warnings into errors. Definitions like "-DFOO" specified the same way are working.