Skip to content

Commit 29b0c1d

Browse files
committed
Try to enable deprecation warnings
1 parent 7201e1c commit 29b0c1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ find_package(fmt REQUIRED)
2828
add_executable(${TARGET_NAME} src/main.cpp src/frame_player.cpp src/imu_player.cpp)
2929
target_link_libraries(${TARGET_NAME} rerun_sdk vrslib vrs_utils fmt)
3030
target_include_directories(${TARGET_NAME} PRIVATE src)
31+
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${rerun_sdk_SOURCE_DIR}) # Ignore warnings in Rerun SDK headers
3132
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${vrslib_SOURCE_DIR}) # Ignore warnings in VRS headers
3233

3334

@@ -58,6 +59,8 @@ else()
5859
-Wall
5960
-Wcast-align
6061
-Wcast-qual
62+
-Wdeprecated
63+
-Wdeprecated-declarations
6164
-Werror=deprecated-declarations
6265
-Wextra
6366
-Wformat=2
@@ -101,6 +104,8 @@ else()
101104
-Wno-reserved-id-macro
102105
-Wno-reserved-identifier
103106
-Wno-unused-macros
107+
-Wno-unsafe-buffer-usage # Not sure why we need this, but we do.
108+
-Wno-unknown-warning-option # Otherwise older clang will complain about `-Wno-unsafe-buffer-usage`
104109
)
105110
endif()
106111

0 commit comments

Comments
 (0)