From 3baabe0648c21897a6fa89e2f62170c179b1bc10 Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Sat, 29 Sep 2012 10:49:25 +0200 Subject: [PATCH] WRG: fix for _XOPEN_SOURCE warning generated by Python.h --- CMake/CTestCustom.cmake.in | 5 ++--- Code/Wrappers/SWIG/itkPyCommand.h | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMake/CTestCustom.cmake.in b/CMake/CTestCustom.cmake.in index 4932050c67..eee64e2629 100644 --- a/CMake/CTestCustom.cmake.in +++ b/CMake/CTestCustom.cmake.in @@ -1,11 +1,11 @@ # -# Note that the ITK/CMakeLists.txt file configures this file +# Note that the OTB/CMakeLists.txt file configures this file # # CMake/CTestCustom.cmake.in # # to this file # -# ${ITK_BINARY_DIR}/CTestCustom.cmake +# ${OTB_BINARY_DIR}/CTestCustom.cmake # #---------------------------------------------------------------------- # @@ -53,7 +53,6 @@ SET(CTEST_CUSTOM_WARNING_EXCEPTION "Fl_Image.H:.*warning:.*dereferencing type-punned pointer will break strict-aliasing rules.*" "warning -.: directory name .* does not exist" "ld.*warning.*duplicate dylib.*" - ".*pyconfig.h:.*warning:.*XOPEN.*SOURCE.*redefined.*" "WARNING non-zero return value in ctest" ".*Microsoft.*include.*.h.*[Ww]arning.*" ".*gdal_priv.h.*[Ww]arning.*" diff --git a/Code/Wrappers/SWIG/itkPyCommand.h b/Code/Wrappers/SWIG/itkPyCommand.h index cc157899a6..ec0ef72268 100644 --- a/Code/Wrappers/SWIG/itkPyCommand.h +++ b/Code/Wrappers/SWIG/itkPyCommand.h @@ -21,6 +21,9 @@ // The python header defines _POSIX_C_SOURCE without a preceding #undef #undef _POSIX_C_SOURCE +// The python header defines _XOPEN_SOURCE without a preceding #undef +#undef _XOPEN_SOURCE + #include <Python.h> namespace itk -- GitLab