mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-05 04:11:50 +02:00
Ignore "maybe-uninitialized" in boost beast
This commit is contained in:
parent
a1cef5d65c
commit
58dbfcee89
4 changed files with 6 additions and 8 deletions
2
.github/workflows/self-hosted.yml
vendored
2
.github/workflows/self-hosted.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue