diff --git a/dll/win32/dbghelp/CMakeLists.txt b/dll/win32/dbghelp/CMakeLists.txt index 2741f7920c660..6b98ef0b63c71 100644 --- a/dll/win32/dbghelp/CMakeLists.txt +++ b/dll/win32/dbghelp/CMakeLists.txt @@ -29,8 +29,8 @@ if(NOT CMAKE_CROSSCOMPILING) # Disable 2 'warning C4700: uninitialized local variable '...' used', false-positives related to ReadFile(). set_source_files_properties(dbghelp.c module.c PROPERTIES COMPILE_OPTIONS /wd4700) else() - # Disable 1 'dbghelp_private.h:...:1: warning: ‘cdecl’ attribute ignored [-Wattributes]'. - add_compile_options(-Wno-attributes) + # Demote 1 'dbghelp_private.h:...:1: warning: ‘cdecl’ attribute ignored [-Wattributes]'. + add_compile_options(-Wno-error=attributes) endif() else() add_definitions(