Skip to content

Commit 01f4907

Browse files
Disable warning
1 parent 88e6fa5 commit 01f4907

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

include/rfl.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
#pragma warning(disable : 4101)
88
#endif
99

10+
#if __GNUC__
11+
#ifndef __clang__
12+
#pragma GCC diagnostic push
13+
#pragma GCC diagnostic ignored "-Wstringop-overflow"
14+
#endif
15+
#endif
16+
1017
#include "rfl/AddStructName.hpp"
1118
#include "rfl/AddTagsToVariants.hpp"
1219
#include "rfl/AllOf.hpp"
@@ -92,4 +99,10 @@
9299
#pragma warning(pop)
93100
#endif
94101

102+
#if __GNUC__
103+
#ifndef __clang__
104+
#pragma GCC diagnostic pop
105+
#endif
106+
#endif
107+
95108
#endif

include/rfl/parsing/NamedTupleParser.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
#ifndef RFL_PARSING_NAMEDTUPLEPARSER_HPP_
22
#define RFL_PARSING_NAMEDTUPLEPARSER_HPP_
33

4-
#ifndef REFLECTCPP_USE_STD_EXPECTED
5-
6-
// Necessary workaround due to a false
7-
// positive in GCC.
8-
#if __GNUC__
9-
#ifndef __clang__
10-
#pragma GCC system_header
11-
#endif
12-
#endif
13-
14-
#endif
15-
164
#include <array>
175
#include <map>
186
#include <sstream>

0 commit comments

Comments
 (0)