Skip to content

Commit 1484a29

Browse files
authored
Disables warnings in nlohmann_json (#598)
Warnings, such as, warning: default label in switch which covers all enumeration values, from nlohmann_json spam during compilation, especially for LLVM builds. A default label for a switch is unreachable should all cases covered. LLVM prefers to warn in cases where not all cases are covered. As we cannot change the code in the json lib, we should at least disable the flood of warnings.
1 parent 96d8cb1 commit 1484a29

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
@@ -166,7 +166,7 @@ set(CMAKE_CXX_CLANG_TIDY "")
166166
set(BUILD_TESTS OFF CACHE BOOL "Build json-schema-validator-tests")
167167

168168
# Make nlohmann_json_schema_validator happy by telling it how to find the single include of nlohmann_json
169-
include_directories(external/json/single_include/)
169+
include_directories(SYSTEM external/json/single_include/)
170170

171171
if (PHASAR_IN_TREE)
172172
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS nlohmann_json_schema_validator)

0 commit comments

Comments
 (0)