Skip to content

Commit 57ea2f4

Browse files
committed
Suppress maybe-uninitialized warning in stb
1 parent edc8dba commit 57ea2f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ elseif (UNIX)
102102
target_compile_definitions(rkt_emgui PUBLIC -DEMGUI_UNIX)
103103
target_compile_options(rkt_emgui PUBLIC -Werror -pedantic-errors -Wall -Wno-format-security)
104104
set_source_files_properties(emgui/src/External/stb_image.c PROPERTIES COMPILE_FLAGS "-Wno-misleading-indentation -Wno-unused-but-set-variable")
105-
set_source_files_properties(emgui/src/External/stb_typetype.c PROPERTIES COMPILE_FLAGS -Wno-unused-but-set-variable)
105+
set_source_files_properties(emgui/src/External/stb_typetype.c PROPERTIES COMPILE_FLAGS "-Wno-unused-but-set-variable -Wno-maybe-uninitialized")
106106
elseif (MSVC)
107107
target_compile_definitions(rkt_emgui PUBLIC -DEMGUI_WINDOWS)
108108
set_target_properties(rkt_emgui PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS")

0 commit comments

Comments
 (0)