Skip to content

Commit 6801f3d

Browse files
committed
Fix compilation error -Werror=unused-result
1 parent 6bdbc26 commit 6801f3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLAN
4646
set(THREE_SIZE_TYPE x86 CACHE INTERNAL "" FORCE)
4747
endif()
4848

49-
set(THREE_COMMON_FLAGS "${THREE_COMMON_FLAGS} -Wall -Wno-missing-braces -Wno-unused-private-field")
49+
set(THREE_COMMON_FLAGS "${THREE_COMMON_FLAGS} -Wall -Wno-missing-braces -Wno-unused-private-field -Wunused-result")
5050

5151
if(THREE_TREAT_WARNINGS_AS_ERRORS)
5252
set(THREE_COMMON_FLAGS "${THREE_COMMON_FLAGS} -Werror")

0 commit comments

Comments
 (0)