Skip to content

Commit

Permalink
perf: remove -Wno-gnu-zero-variadic-macro-arguments required by Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Feb 4, 2024
1 parent 5a5f9bc commit 8c67541
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_COMPILER_FRONTEND_VARIANT
add_compile_options("/utf-8" "/W4")
else()
add_compile_options("-Wall;-Wextra;-Wpedantic;-mtune=native")
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options("-Wno-gnu-zero-variadic-macro-arguments")
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64|EM64T|x86_64")
add_compile_options("-msse4.1")
endif()
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ A modern all-platform Json/Json5 parser/serializer, which is header-only and use
```

- **meojson** 仅依赖 STL, 但需要 c++17 标准
- 若使用 AppleClang,请在项目中添加 `-Wno-gnu-zero-variadic-macro-arguments`

## 序列化

Expand Down
1 change: 0 additions & 1 deletion README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ A modern all-platform Json/Json5 parser/serializer, which is header-only and use
```

- **meojson** only depends on STL, but requires c++17 standard
- For AppleClang, please add `-Wno-gnu-zero-variadic-macro-arguments` to your project

## Serializing

Expand Down

0 comments on commit 8c67541

Please sign in to comment.