Skip to content

Commit 7f0b580

Browse files
author
Tor Didriksen
committed
Bug#34776172 MacOS: silence deprecated use warnings from XCode >= 14
Additional patch, silencing some warnings in 3rd party code. Change-Id: I66c5b1d1ce46bbd8b60f346a2ab5338f3a769e6d
1 parent bb0711e commit 7f0b580

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

extra/icu/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ ENDIF()
6060
# Xcode >= 14 makes noise about sprintf, so silence:
6161
IF(APPLE)
6262
LIST(APPEND ICU_LINUX_COMPILE_OPTIONS "-Wno-deprecated-declarations")
63+
LIST(APPEND ICU_LINUX_COMPILE_OPTIONS "-Wno-shorten-64-to-32")
6364
ENDIF()
6465

6566
MY_CHECK_CXX_COMPILER_WARNING("-Wzero-as-null-pointer-constant" HAS_WARN_FLAG)

extra/libevent/libevent-2.1.11-stable/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
# start libevent.sln
2020
#
2121

22+
IF(APPLE)
23+
STRING_APPEND(CMAKE_C_FLAGS " -Wno-shorten-64-to-32")
24+
ENDIF()
25+
2226
MY_CHECK_CXX_COMPILER_WARNING("-Wdangling-pointer" HAS_WARN_FLAG)
2327
IF(HAS_WARN_FLAG)
2428
STRING_APPEND(CMAKE_C_FLAGS " ${HAS_WARN_FLAG}")

extra/protobuf/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ ENDIF()
3232
# Xcode >= 14 makes noise about sprintf, so silence:
3333
IF(APPLE)
3434
STRING_APPEND(CMAKE_CXX_FLAGS " -Wno-deprecated-declarations")
35+
STRING_APPEND(CMAKE_CXX_FLAGS " -Wno-shorten-64-to-32")
3536
ENDIF()
3637

3738
# Inhibit warning messages

0 commit comments

Comments
 (0)