Skip to content

Commit

Permalink
Suppress more clang-17 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Mar 27, 2024
1 parent 6686f3c commit 57b73d7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions asio/.clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Checks: "*,\
-llvmlibc-*,\
-cppcoreguidelines-pro-bounds-pointer-arithmetic,\
-*-magic-numbers,\
-misc-include-cleaner,\
-misc-header-include-cycle,\
-misc-non-private-member-variables-in-classes"
WarningsAsErrors: ''
CheckOptions:
Expand Down
4 changes: 2 additions & 2 deletions asio/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_FLAGS":
"-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wpedantic -Wno-conversion -Wno-sign-conversion -Wcast-qual -Wformat=2 -Wundef -Werror=float-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wimplicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wold-style-cast",
"-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wpedantic -Wno-conversion -Wno-sign-conversion -Wcast-qual -Wformat=2 -Wundef -Werror=float-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wimplicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wno-old-style-cast",
"CMAKE_EXE_LINKER_FLAGS":
"-Wl,--allow-shlib-undefined,--as-needed,-z,noexecstack,-z,relro,-z,now",
"CMAKE_SHARED_LINKER_FLAGS":
Expand All @@ -76,7 +76,7 @@
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_FLAGS":
"-fstack-protector-strong -fcf-protection=full -Wall -Wextra -Wpedantic -Wno-conversion -Wno-sign-conversion -Wcast-qual -Wformat=2 -Wundef -Werror=float-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wimplicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wold-style-cast"
"-fstack-protector-strong -fcf-protection=full -Wall -Wextra -Wpedantic -Wno-conversion -Wno-sign-conversion -Wcast-qual -Wformat=2 -Wundef -Werror=float-equal -Wshadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wimplicit-fallthrough -Wextra-semi -Woverloaded-virtual -Wnon-virtual-dtor -Wno-old-style-cast"
},
"condition": {
"type": "equals",
Expand Down
2 changes: 1 addition & 1 deletion asio/CMakeUserPresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
{
"name": "dev",
"binaryDir": "${sourceDir}/build/dev",
"inherits": "dev-darwin"
"inherits": "dev-linux"
},
{
"name": "dev-coverage",
Expand Down
5 changes: 3 additions & 2 deletions asio/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ all: .init
cmake --workflow --preset dev

check:
ninja -C build/dev spell-check
ninja -C build/dev format-check
run-clang-tidy -p build/dev -checks='-*,misc-header-*' src/tests
# ninja -C build/dev spell-check
# ninja -C build/dev format-check

.init: requirements.txt
-pip3 install --user --upgrade -r requirements.txt
Expand Down
4 changes: 3 additions & 1 deletion asio/include/asio/impl/io_context.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)

#include "asio/detail/config.hpp"
#include "asio/io_context.hpp"

// warning: circular header file dependency detected while including 'io_context.hpp', please check the include path [misc-header-include-cycle]
// XXX #include "asio/io_context.hpp"
#include "asio/detail/concurrency_hint.hpp"
#include "asio/detail/limits.hpp"
#include "asio/detail/scoped_ptr.hpp"
Expand Down

0 comments on commit 57b73d7

Please sign in to comment.