Tasp

C++ bindings and build options

Discussion created by Tasp on Apr 27, 2010
Latest reply on Apr 27, 2010 by Tasp

Hello,

I tried "-Werror" and it seems that it is not working.

Specification:

 

-Werror
      Make all warnings into errors.


I did:

program.build(devices, "-Werror");

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.

Ideas?

Outcomes