[cmake-developers] cmake --deprecated-warnings and cmake --deprecated-errors
Hi, It's now possible to invoke cmake with -DCMAKE_WARN_DEPRECATED=1 and also with -DCMAKE_ERROR_DEPRECATED=1 to get deprecation warnings or errors. I wonder if we should add --deprecated-warnings and --deprecated-errors and document them in cmake --help, as --warn-uninitialized etc? I think it's something we can do after 2.8.12, but I want to make sure it doesn't change anything in how the deprecation stuff works or is used currently. Thanks, Steve. -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] cmake --deprecated-warnings and cmake --deprecated-errors
On 07/30/2013 06:30 AM, Stephen Kelly wrote: It's now possible to invoke cmake with -DCMAKE_WARN_DEPRECATED=1 and also with -DCMAKE_ERROR_DEPRECATED=1 to get deprecation warnings or errors. I wonder if we should add --deprecated-warnings and --deprecated-errors and document them in cmake --help, as --warn-uninitialized etc? I think it's something we can do after 2.8.12, but I want to make sure it doesn't change anything in how the deprecation stuff works or is used currently. The first warning option ever added was -Wdev and the intention at the time was to use -W... for all warning options. That was forgotten by the time --warn-uninitialized was created. Perhaps that can be cleaned up now: -Wdeprecated -Wdeprecated=error -Wuninitialized ... -Brad -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] cmake --deprecated-warnings and cmake --deprecated-errors
Brad King wrote: -Wdeprecated -Wdeprecated=error -Wuninitialized Ok, I'll come back to that after 2.8.12. Thanks, Steve. -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] cmake --deprecated-warnings and cmake --deprecated-errors
On 2013-07-30 08:45, Brad King wrote: On 07/30/2013 06:30 AM, Stephen Kelly wrote: I wonder if we should add --deprecated-warnings and --deprecated-errors and document them in cmake --help, as --warn-uninitialized etc? I think it's something we can do after 2.8.12, but I want to make sure it doesn't change anything in how the deprecation stuff works or is used currently. The first warning option ever added was -Wdev and the intention at the time was to use -W... for all warning options. That was forgotten by the time --warn-uninitialized was created. Perhaps that can be cleaned up now: -Wdeprecated -Wdeprecated=error -Wuninitialized If you haven't already, please consider -W[no-][error=]name (instead of -Wname[=error]) for consistency with GCC... e.g.: -Wdeprecated -Wno-deprecated -Werror=deprecated -Wno-error=deprecated Note: -Wname = name_level = std::min(name_level, WARN) -Wnoname = name_level = IGNORED -Werror=name = name_level = ERROR -Wno-error=name = name_level = std::max(name_level, WARN) (where IGNORED WARN ERROR) -- Matthew -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers