Skip to content

Commit f9e319d

Browse files
committed
build: suppress clang private field warning
1 parent 37d65da commit f9e319d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ include(limit_jobs)
4545
if(DEFINED ENV{NIX_CC})
4646
add_compile_options(-DFMT_CONSTEVAL=)
4747
add_compile_options(-Wno-deprecated-literal-operator)
48+
add_compile_options(-Wno-unused-private-field)
4849
endif()
4950
set(CMAKE_CXX_STANDARD "23" CACHE INTERNAL "")
5051
set(CMAKE_CXX_EXTENSIONS ON CACHE INTERNAL "")

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ def dynamic_linker_option():
16761676
user_cflags += ' -march=' + args.target
16771677

16781678
if os.environ.get('NIX_CC'):
1679-
user_cflags += ' -DFMT_CONSTEVAL= -Wno-deprecated-literal-operator'
1679+
user_cflags += ' -DFMT_CONSTEVAL= -Wno-deprecated-literal-operator -Wno-unused-private-field'
16801680

16811681
user_cflags = user_cflags.strip()
16821682

0 commit comments

Comments
 (0)