Ignore "maybe-uninitialized" in boost beast

This commit is contained in:
badaix 2020-11-30 18:11:29 +01:00
parent a1cef5d65c
commit 58dbfcee89
4 changed files with 6 additions and 8 deletions

View file

@ -21,10 +21,14 @@
#include "control_session.hpp"
#include <boost/beast/core.hpp>
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#include <boost/beast/websocket.hpp>
#pragma GCC diagnostic pop
#else
#include <boost/beast/websocket.hpp>
#endif
#include <deque>
namespace beast = boost::beast; // from <boost/beast.hpp>