mirror of
https://github.com/nlohmann/json.git
synced 2026-07-09 03:55:09 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 282f84cc8e |
@@ -90,13 +90,11 @@ jobs:
|
|||||||
- name: Get latest CMake and ninja
|
- name: Get latest CMake and ninja
|
||||||
uses: lukka/get-cmake@f5b8fbb4d77cec1acc5a5f9f0df4beffaf5d98d9 # v4.3.4
|
uses: lukka/get-cmake@f5b8fbb4d77cec1acc5a5f9f0df4beffaf5d98d9 # v4.3.4
|
||||||
- name: Set extra CXX_FLAGS for latest std_version
|
- name: Set extra CXX_FLAGS for latest std_version
|
||||||
# /wd5285 silences C5285 emitted by the bundled third-party doctest.h, which
|
|
||||||
# specializes std::tuple (newly diagnosed by the VS2026 v145 toolset)
|
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.std_version }}" = "latest" ]; then
|
if [ "${{ matrix.std_version }}" = "latest" ]; then
|
||||||
echo "flags=/permissive- /std:c++latest /utf-8 /W4 /WX /wd5285" >> $GITHUB_ENV
|
echo "flags=/permissive- /std:c++latest /utf-8 /W4 /WX" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "flags=/W4 /WX /wd5285" >> $GITHUB_ENV
|
echo "flags=/W4 /WX" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Run CMake (Release)
|
- name: Run CMake (Release)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
# -Wno-extra-semi-stmt The library uses assert which triggers this warning.
|
# -Wno-extra-semi-stmt The library uses assert which triggers this warning.
|
||||||
# -Wno-padded We do not care about padding warnings.
|
# -Wno-padded We do not care about padding warnings.
|
||||||
# -Wno-covered-switch-default All switches list all cases and a default case.
|
# -Wno-covered-switch-default All switches list all cases and a default case.
|
||||||
# -Wno-unsafe-buffer-usage Otherwise Doctest would not compile.
|
# -Wno-unsafe-buffer-usage Otherwise library code (strlen) would not compile.
|
||||||
# -Wno-missing-noreturn We found no way to silence this warning otherwise, see PR #4871
|
# -Wno-missing-noreturn We found no way to silence this warning otherwise, see PR #4871
|
||||||
|
|
||||||
set(CLANG_CXXFLAGS
|
set(CLANG_CXXFLAGS
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
# -Wno-aggregate-return The library uses aggregate returns.
|
# -Wno-aggregate-return The library uses aggregate returns.
|
||||||
# -Wno-long-long The library uses the long long type to interface with system functions.
|
# -Wno-long-long The library uses the long long type to interface with system functions.
|
||||||
# -Wno-namespaces The library uses namespaces.
|
# -Wno-namespaces The library uses namespaces.
|
||||||
# -Wno-nrvo Doctest triggers this warning.
|
|
||||||
# -Wno-padded We do not care about padding warnings.
|
# -Wno-padded We do not care about padding warnings.
|
||||||
# -Wno-system-headers We do not care about warnings in system headers.
|
# -Wno-system-headers We do not care about warnings in system headers.
|
||||||
# -Wno-templates The library uses templates.
|
# -Wno-templates The library uses templates.
|
||||||
@@ -232,7 +231,6 @@ set(GCC_CXXFLAGS
|
|||||||
-Wnonnull
|
-Wnonnull
|
||||||
-Wnonnull-compare
|
-Wnonnull-compare
|
||||||
-Wnormalized=nfkc
|
-Wnormalized=nfkc
|
||||||
-Wno-nrvo
|
|
||||||
-Wnull-dereference
|
-Wnull-dereference
|
||||||
-Wodr
|
-Wodr
|
||||||
-Wold-style-cast
|
-Wold-style-cast
|
||||||
|
|||||||
Vendored
+7115
-5102
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user