Skip to content

Commit ae098ea

Browse files
Windows: scope C4251 suppression and remove temp quick workflow
1 parent f9a0f32 commit ae098ea

15 files changed

Lines changed: 115 additions & 216 deletions

.github/workflows/windows-quick.yml

Lines changed: 0 additions & 194 deletions
This file was deleted.

include/boost/http_proto.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
#ifndef BOOST_HTTP_PROTO_HPP
1111
#define BOOST_HTTP_PROTO_HPP
1212

13+
#if defined(BOOST_MSVC)
14+
# pragma warning(push)
15+
# pragma warning(disable:4251)
16+
#endif
17+
1318
#include <boost/http_proto/error.hpp>
1419
#include <boost/http_proto/field.hpp>
1520
#include <boost/http_proto/fields.hpp>
@@ -52,4 +57,8 @@
5257
#include <boost/http_proto/server/route_handler.hpp>
5358
#include <boost/http_proto/server/router_types.hpp>
5459

60+
#if defined(BOOST_MSVC)
61+
# pragma warning(pop)
62+
#endif
63+
5564
#endif

include/boost/http_proto/detail/config.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@ namespace http_proto {
3333
# define BOOST_HTTP_PROTO_DECL
3434
# endif
3535

36-
// MSVC-only helpers to locally suppress benign DLL-interface warnings
37-
# if defined(BOOST_MSVC)
38-
# define BOOST_HTTP_PROTO_MSVC_WARNING_PUSH __pragma(warning(push))
39-
# define BOOST_HTTP_PROTO_MSVC_WARNING_POP __pragma(warning(pop))
40-
# define BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275 \
41-
__pragma(warning(disable:4251 4275))
42-
# else
43-
# define BOOST_HTTP_PROTO_MSVC_WARNING_PUSH
44-
# define BOOST_HTTP_PROTO_MSVC_WARNING_POP
45-
# define BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275
46-
# endif
47-
4836
# if !defined(BOOST_HTTP_PROTO_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_HTTP_PROTO_NO_LIB)
4937
# define BOOST_LIB_NAME boost_http_proto
5038
# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_HTTP_PROTO_DYN_LINK)

include/boost/http_proto/detail/header.hpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424

2525
#include <cstdint>
2626

27+
#if defined(BOOST_MSVC)
28+
# pragma warning(push)
29+
# pragma warning(disable:4251)
30+
#endif
31+
2732
namespace boost {
2833
namespace http_proto {
2934

@@ -44,8 +49,6 @@ struct empty
4449
kind param;
4550
};
4651

47-
BOOST_HTTP_PROTO_MSVC_WARNING_PUSH
48-
BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275
4952

5053
struct BOOST_HTTP_PROTO_DECL header
5154
{
@@ -221,7 +224,10 @@ struct BOOST_HTTP_PROTO_DECL header
221224
system::error_code&) noexcept;
222225
};
223226

224-
BOOST_HTTP_PROTO_MSVC_WARNING_POP
227+
#if defined(BOOST_MSVC)
228+
# pragma warning(pop)
229+
#endif
230+
225231

226232
} // detail
227233
} // http_proto

include/boost/http_proto/fields_base.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919

2020
#include <iosfwd>
2121

22+
#if defined(BOOST_MSVC)
23+
# pragma warning(push)
24+
# pragma warning(disable:4251)
25+
#endif
26+
2227
namespace boost {
2328
namespace http_proto {
2429

@@ -1398,4 +1403,8 @@ class BOOST_HTTP_PROTO_DECL fields_base
13981403

13991404
#include <boost/http_proto/impl/fields_base.hpp>
14001405

1406+
#if defined(BOOST_MSVC)
1407+
# pragma warning(pop)
1408+
#endif
1409+
14011410
#endif

include/boost/http_proto/message_base.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
#include <boost/http_proto/fields_base.hpp>
1616
#include <boost/core/detail/string_view.hpp>
1717

18+
#if defined(BOOST_MSVC)
19+
# pragma warning(push)
20+
# pragma warning(disable:4251)
21+
#endif
22+
1823
namespace boost {
1924
namespace http_proto {
2025

@@ -187,6 +192,10 @@ class BOOST_HTTP_PROTO_DECL message_base
187192
set_keep_alive(bool value);
188193
};
189194

195+
#if defined(BOOST_MSVC)
196+
# pragma warning(pop)
197+
#endif
198+
190199
} // http_proto
191200
} // boost
192201

include/boost/http_proto/parser.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
#include <boost/http_proto/header_limits.hpp>
1919
#include <boost/http_proto/sink.hpp>
2020

21+
#if defined(BOOST_MSVC)
22+
# pragma warning(push)
23+
# pragma warning(disable:4251)
24+
#endif
2125
#include <boost/buffers/dynamic_buffer.hpp>
2226
#include <boost/buffers/buffer_pair.hpp>
2327
#include <boost/core/span.hpp>
@@ -778,4 +782,8 @@ install_parser_service(
778782

779783
#include <boost/http_proto/impl/parser.hpp>
780784

785+
#if defined(BOOST_MSVC)
786+
# pragma warning(pop)
787+
#endif
788+
781789
#endif

include/boost/http_proto/request.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
#include <boost/http_proto/request_base.hpp>
1414

15+
#if defined(BOOST_MSVC)
16+
# pragma warning(push)
17+
# pragma warning(disable:4251)
18+
#endif
19+
1520
namespace boost {
1621
namespace http_proto {
1722

@@ -452,6 +457,10 @@ class BOOST_HTTP_PROTO_DECL request
452457
}
453458
};
454459

460+
#if defined(BOOST_MSVC)
461+
# pragma warning(pop)
462+
#endif
463+
455464
} // http_proto
456465
} // boost
457466

include/boost/http_proto/request_base.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
#include <boost/http_proto/detail/config.hpp>
1515
#include <boost/http_proto/message_base.hpp>
1616

17+
#if defined(BOOST_MSVC)
18+
# pragma warning(push)
19+
# pragma warning(disable:4251)
20+
#endif
21+
1722
namespace boost {
1823
namespace http_proto {
1924

@@ -298,6 +303,10 @@ class BOOST_HTTP_PROTO_DECL request_base
298303
http_proto::version v);
299304
};
300305

306+
#if defined(BOOST_MSVC)
307+
# pragma warning(pop)
308+
#endif
309+
301310
} // http_proto
302311
} // boost
303312

0 commit comments

Comments
 (0)