Skip to content

Commit

Permalink
⚗️ update warning flags
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Aug 17, 2021
1 parent 57dd00f commit c232ac3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions cmake/ci.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ set(CLANG_CXXFLAGS "-std=c++11 \
")

# Ignored GCC warnings:
# -Wno-abi-tag We do not care about ABI tags.
# -Wno-aggregate-return The library uses aggregate returns.
# -Wno-long-long The library uses the long long type to interface with system functions.
# -Wno-namespaces The library uses namespaces.
# -Wno-padded We do not care about padding warnings.
# -Wno-system-headers We do not care about warnings in system headers.
# -Wno-templates The library uses templates.
# -Wno-abi-tag We do not care about ABI tags.
# -Wno-aggregate-return The library uses aggregate returns.
# -Wno-long-long The library uses the long long type to interface with system functions.
# -Wno-namespaces The library uses namespaces.
# -Wno-padded We do not care about padding warnings.
# -Wno-system-headers We do not care about warnings in system headers.
# -Wno-templates The library uses templates.

set(GCC_CXXFLAGS "-std=c++11 \
-pedantic \
Expand Down
2 changes: 1 addition & 1 deletion doc/mkdocs/docs/api/basic_json/binary_t.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ type `#!cpp binary_t*` must be dereferenced.

## Version history

- Added in version 3.8.0. Changed type of subtype to `std::uint64_t` in version 3.9.2.
- Added in version 3.8.0. Changed type of subtype to `std::uint64_t` in version 3.10.0.
2 changes: 1 addition & 1 deletion doc/mkdocs/docs/api/basic_json/cbor_tag_handler_t.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ store

## Version history

- Added in version 3.9.0. Added value `store` in 3.9.2.
- Added in version 3.9.0. Added value `store` in 3.10.0.
4 changes: 2 additions & 2 deletions include/nlohmann/byte_container_with_subtype.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ order to override the binary type.
@tparam BinaryType container to store bytes (`std::vector<std::uint8_t>` by
default)
@since version 3.8.0; changed type of subtypes to std::uint64_t in 3.9.2.
@since version 3.8.0; changed type of subtypes to std::uint64_t in 3.10.0.
*/
template<typename BinaryType>
class byte_container_with_subtype : public BinaryType
Expand Down Expand Up @@ -108,7 +108,7 @@ class byte_container_with_subtype : public BinaryType
subtype
@since version 3.8.0; fixed return value to properly return
subtype_type(-1) as documented in version 3.9.2
subtype_type(-1) as documented in version 3.10.0
*/
constexpr subtype_type subtype() const noexcept
{
Expand Down
4 changes: 2 additions & 2 deletions single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5004,7 +5004,7 @@ order to override the binary type.
@tparam BinaryType container to store bytes (`std::vector<std::uint8_t>` by
default)

@since version 3.8.0; changed type of subtypes to std::uint64_t in 3.9.2.
@since version 3.8.0; changed type of subtypes to std::uint64_t in 3.10.0.
*/
template<typename BinaryType>
class byte_container_with_subtype : public BinaryType
Expand Down Expand Up @@ -5094,7 +5094,7 @@ class byte_container_with_subtype : public BinaryType
subtype

@since version 3.8.0; fixed return value to properly return
subtype_type(-1) as documented in version 3.9.2
subtype_type(-1) as documented in version 3.10.0
*/
constexpr subtype_type subtype() const noexcept
{
Expand Down

0 comments on commit c232ac3

Please sign in to comment.