diff options
author | Mustafa Gökçe <48911620+mustafa-gokce@users.noreply.github.com> | 2025-04-07 13:30:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-07 13:30:02 +0300 |
commit | 441cacf1b7f5b855278fcf01e35b0f65f2db76fb (patch) | |
tree | 24d11fbcccca573bcea9113b762c520ca52aa6c2 | |
parent | 16db162e6c571138f0bb2f87bf225ba46baef1bb (diff) | |
download | portable-441cacf1b7f5b855278fcf01e35b0f65f2db76fb.tar.gz portable-441cacf1b7f5b855278fcf01e35b0f65f2db76fb.tar.bz2 portable-441cacf1b7f5b855278fcf01e35b0f65f2db76fb.zip |
Fix no pointer sign warning on C++ compilers
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 437570b..ea0e7e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -131,7 +131,7 @@ add_definitions(-D__END_HIDDEN_DECLS=) | |||
131 | set(CMAKE_POSITION_INDEPENDENT_CODE true) | 131 | set(CMAKE_POSITION_INDEPENDENT_CODE true) |
132 | 132 | ||
133 | if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") | 133 | if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") |
134 | add_definitions(-Wno-pointer-sign) | 134 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pointer-sign") |
135 | endif() | 135 | endif() |
136 | 136 | ||
137 | if(WIN32) | 137 | if(WIN32) |