Skip to content

Commit fee9be0

Browse files
committed
Fix Wattributes warnings in tests
1 parent 2427765 commit fee9be0

File tree

5 files changed

+11
-30
lines changed

5 files changed

+11
-30
lines changed

test/beast/core/buffered_read_stream.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,10 @@
2626
#include <boost/asio/use_awaitable.hpp>
2727
#endif
2828

29-
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
30-
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
31-
#else
32-
#define BOOST_BEAST_SYMBOL_HIDDEN
33-
#endif
34-
3529
namespace boost {
3630
namespace beast {
3731

38-
class BOOST_BEAST_SYMBOL_HIDDEN buffered_read_stream_test
32+
class buffered_read_stream_test
3933
: public unit_test::suite
4034
, public test::enable_yield_to
4135
{

test/beast/http/read.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,11 @@
3737
#include <boost/asio/use_awaitable.hpp>
3838
#endif
3939

40-
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
41-
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
42-
#else
43-
#define BOOST_BEAST_SYMBOL_HIDDEN
44-
#endif
45-
4640
namespace boost {
4741
namespace beast {
4842
namespace http {
4943

50-
class BOOST_BEAST_SYMBOL_HIDDEN read_test
44+
class read_test
5145
: public beast::unit_test::suite
5246
, public test::enable_yield_to
5347
{

test/beast/http/write.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,11 @@
3636
#include <boost/asio/use_awaitable.hpp>
3737
#endif
3838

39-
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
40-
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
41-
#else
42-
#define BOOST_BEAST_SYMBOL_HIDDEN
43-
#endif
44-
4539
namespace boost {
4640
namespace beast {
4741
namespace http {
4842

49-
class BOOST_BEAST_SYMBOL_HIDDEN write_test
43+
class write_test
5044
: public beast::unit_test::suite
5145
, public test::enable_yield_to
5246
{

test/beast/websocket/read2.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,11 @@
1818
#include <boost/asio/use_awaitable.hpp>
1919
#endif
2020

21-
#include <boost/config/workaround.hpp>
22-
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
23-
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
24-
#else
25-
#define BOOST_BEAST_SYMBOL_HIDDEN
26-
#endif
27-
2821
namespace boost {
2922
namespace beast {
3023
namespace websocket {
3124

32-
class BOOST_BEAST_SYMBOL_HIDDEN read2_test
25+
class read2_test
3326
: public websocket_test_suite
3427
{
3528
public:

test/extras/include/boost/beast/test/yield_to.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
#include <thread>
2020
#include <vector>
2121

22+
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
23+
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
24+
#else
25+
#define BOOST_BEAST_SYMBOL_HIDDEN
26+
#endif
27+
2228
namespace boost {
2329
namespace beast {
2430
namespace test {
@@ -29,7 +35,7 @@ namespace test {
2935
functions inside coroutines. This is handy for testing
3036
asynchronous asio code.
3137
*/
32-
class enable_yield_to
38+
class BOOST_BEAST_SYMBOL_HIDDEN enable_yield_to
3339
{
3440
protected:
3541
net::io_context ioc_;

0 commit comments

Comments
 (0)