Skip to content

Commit

Permalink
Suppress boost warning
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed May 7, 2024
1 parent cbe0a30 commit 862e9a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/control_session_http.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@
#include <boost/beast/core.hpp>
#include <boost/beast/ssl.hpp>

#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#include <boost/beast/websocket.hpp>
#pragma GCC diagnostic pop
#else
#include <boost/beast/websocket.hpp>
#endif

// standard headers
#include <deque>
Expand Down
6 changes: 6 additions & 0 deletions server/control_session_ws.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@
#include "control_session.hpp"

// 3rd party headers
#pragma GCC diagnostic push
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#include <boost/asio/strand.hpp>
#pragma GCC diagnostic pop

#pragma GCC diagnostic push
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
Expand Down

0 comments on commit 862e9a2

Please sign in to comment.