mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 21:07:26 +02:00
Fix Wattributes warnings in tests
This commit is contained in:
committed by
Mohammad Nejati
parent
2427765fb3
commit
fee9be0be1
@ -26,16 +26,10 @@
|
|||||||
#include <boost/asio/use_awaitable.hpp>
|
#include <boost/asio/use_awaitable.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
|
|
||||||
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
|
|
||||||
#else
|
|
||||||
#define BOOST_BEAST_SYMBOL_HIDDEN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
|
||||||
class BOOST_BEAST_SYMBOL_HIDDEN buffered_read_stream_test
|
class buffered_read_stream_test
|
||||||
: public unit_test::suite
|
: public unit_test::suite
|
||||||
, public test::enable_yield_to
|
, public test::enable_yield_to
|
||||||
{
|
{
|
||||||
|
@ -37,17 +37,11 @@
|
|||||||
#include <boost/asio/use_awaitable.hpp>
|
#include <boost/asio/use_awaitable.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
|
|
||||||
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
|
|
||||||
#else
|
|
||||||
#define BOOST_BEAST_SYMBOL_HIDDEN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace http {
|
namespace http {
|
||||||
|
|
||||||
class BOOST_BEAST_SYMBOL_HIDDEN read_test
|
class read_test
|
||||||
: public beast::unit_test::suite
|
: public beast::unit_test::suite
|
||||||
, public test::enable_yield_to
|
, public test::enable_yield_to
|
||||||
{
|
{
|
||||||
|
@ -36,17 +36,11 @@
|
|||||||
#include <boost/asio/use_awaitable.hpp>
|
#include <boost/asio/use_awaitable.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
|
|
||||||
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
|
|
||||||
#else
|
|
||||||
#define BOOST_BEAST_SYMBOL_HIDDEN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace http {
|
namespace http {
|
||||||
|
|
||||||
class BOOST_BEAST_SYMBOL_HIDDEN write_test
|
class write_test
|
||||||
: public beast::unit_test::suite
|
: public beast::unit_test::suite
|
||||||
, public test::enable_yield_to
|
, public test::enable_yield_to
|
||||||
{
|
{
|
||||||
|
@ -18,18 +18,11 @@
|
|||||||
#include <boost/asio/use_awaitable.hpp>
|
#include <boost/asio/use_awaitable.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/config/workaround.hpp>
|
|
||||||
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
|
|
||||||
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
|
|
||||||
#else
|
|
||||||
#define BOOST_BEAST_SYMBOL_HIDDEN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace websocket {
|
namespace websocket {
|
||||||
|
|
||||||
class BOOST_BEAST_SYMBOL_HIDDEN read2_test
|
class read2_test
|
||||||
: public websocket_test_suite
|
: public websocket_test_suite
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -19,6 +19,12 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
|
||||||
|
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
|
||||||
|
#else
|
||||||
|
#define BOOST_BEAST_SYMBOL_HIDDEN
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace test {
|
namespace test {
|
||||||
@ -29,7 +35,7 @@ namespace test {
|
|||||||
functions inside coroutines. This is handy for testing
|
functions inside coroutines. This is handy for testing
|
||||||
asynchronous asio code.
|
asynchronous asio code.
|
||||||
*/
|
*/
|
||||||
class enable_yield_to
|
class BOOST_BEAST_SYMBOL_HIDDEN enable_yield_to
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
net::io_context ioc_;
|
net::io_context ioc_;
|
||||||
|
Reference in New Issue
Block a user