On Feb 2, 2011, at 9:12 AM, Bill Hoffman wrote:

> On 2/2/2011 6:10 AM, Micha Renner wrote:
>> Am Mittwoch, den 02.02.2011, 12:00 +0100 schrieb Emmanuel Blot:
>>> Hello,
>>> 
>>> How to disable the new warnings CMake 2.8.4-rc2 emits, such as the
>>> following ones?
>> 
>> I support this question too.
>> 
>> There should be a way to switch off this feature of CMake, especially
>> when variables are used uninitialized.
>> 
> 
> Currently, there is no way to turn this off.  Are the warnings valid? It 
> means you are giving -D options on the command line, and those variables are 
> never touched in the project.  Seems like you would not want to use them 
> anymore.  The idea was to catch misspelled words.
> 
> -DMYVARR=1 , but you wanted MYVAR.
> 
> -Bill


On Feb 2, 2011, at 9:08 AM, Brad King wrote:
> 
> cmake --help:
> 
>  --warn-uninitialized        = Warn about uninitialized values.
>  --warn-unused-vars          = Warn about unused variables.
>  --no-warn-unused-cli        = Don't warn about command line options.
> 
> -Brad


So does the -warn-uninitialized ENABLE or DISABLE the new warnings? What Bill 
and Brad are saying, in my opinion, are opposite. Maybe just some more 
clarification on this would be great.

Thanks
Mike Jackson
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to