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

@ -12,7 +12,7 @@ jobs:
run: rm -rf /home/pi/actions-runner/_work/snapcast/snap*_armhf.deb
- uses: actions/checkout@v2
- name: cmake build
run: mkdir build && cd build && cmake -DBOOST_ROOT=/home/pi/Develop/boost_1_74_0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER_LAUNCHER=ccache .. && cd ..
run: mkdir build && cd build && cmake -DBOOST_ROOT=/home/pi/Develop/boost_1_74_0 -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-psabi" -DCMAKE_CXX_COMPILER_LAUNCHER=ccache .. && cd ..
- name: cmake make
run: cmake --build build
- name: debian package

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>

View file

@ -21,10 +21,7 @@
#include "control_session.hpp"
#include <boost/beast/core.hpp>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <boost/beast/websocket.hpp>
#pragma GCC diagnostic pop
#include <deque>
namespace beast = boost::beast; // from <boost/beast.hpp>

View file

@ -21,10 +21,7 @@
#include "stream_session.hpp"
#include <boost/beast/core.hpp>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <boost/beast/websocket.hpp>
#pragma GCC diagnostic pop
#include <deque>
namespace beast = boost::beast; // from <boost/beast.hpp>