summaryrefslogtreecommitdiff
path: root/src/regex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex.cpp')
-rw-r--r--src/regex.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/regex.cpp b/src/regex.cpp
index e3ec2810c..fb820e2bf 100644
--- a/src/regex.cpp
+++ b/src/regex.cpp
@@ -69,8 +69,10 @@ regex_error::~regex_error() throw() {}
namespace {
+#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpadded"
+#endif
struct collationnames
{
@@ -78,7 +80,9 @@ struct collationnames
char char_;
};
+#if defined(__clang__)
#pragma clang diagnostic pop
+#endif
const collationnames collatenames[] =
{
@@ -195,8 +199,10 @@ const collationnames collatenames[] =
{"zero", 0x30}
};
+#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpadded"
+#endif
struct classnames
{
@@ -204,7 +210,9 @@ struct classnames
ctype_base::mask mask_;
};
+#if defined(__clang__)
#pragma clang diagnostic pop
+#endif
const classnames ClassNames[] =
{