https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6a1c78b37b94954610828…
commit 6a1c78b37b9495461082891bc5cf46bac7f0a0af
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Mar 31 10:40:06 2019 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Mon Apr 1 11:38:32 2019 +0200
[GLU32] Prevent a warning when comparing 'this' against 0
---
dll/opengl/glu32/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dll/opengl/glu32/CMakeLists.txt b/dll/opengl/glu32/CMakeLists.txt
index f9e0a4793c..df3a5bb5af 100644
--- a/dll/opengl/glu32/CMakeLists.txt
+++ b/dll/opengl/glu32/CMakeLists.txt
@@ -121,6 +121,8 @@ set_module_type(glu32 win32dll)
if(NOT MSVC)
add_target_compile_flags(glu32 "-Wno-write-strings
-Wno-unused-but-set-variable")
+ # Prevent a warning when comparing 'this' against 0
+ set_source_files_properties(src/libnurbs/internals/arc.cc PROPERTIES COMPILE_FLAGS
"-Wno-nonnull-compare")
elseif(USE_CLANG_CL)
add_target_compile_flags(glu32 "-Wno-self-assign -Wno-unused-function
-Wno-microsoft-include")
add_target_compile_flags(glu32 "-Wno-deprecated-register
-Wno-tautological-undefined-compare")