summaryrefslogtreecommitdiff
path: root/sql/sys_vars.ic
diff options
context:
space:
mode:
authorkevg <claprix@yandex.ru>2017-03-31 13:21:30 +0300
committerAleksey Midenkov <midenok@gmail.com>2017-05-05 20:36:34 +0300
commitd85fa886768001e9bb4bd5f63eee9641aa8abc92 (patch)
tree1ff48cccb8a0145c260360bd05e38ec8a600fc4d /sql/sys_vars.ic
parent9e9af76eaf4eec4f105e029975ec5a142ec7e8f2 (diff)
downloadmariadb-git-d85fa886768001e9bb4bd5f63eee9641aa8abc92.tar.gz
Misc: disable clang warning 'offset for non-POD type'
Diffstat (limited to 'sql/sys_vars.ic')
-rw-r--r--sql/sys_vars.ic5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sys_vars.ic b/sql/sys_vars.ic
index 76bf8631630..27987a8d8b8 100644
--- a/sql/sys_vars.ic
+++ b/sql/sys_vars.ic
@@ -77,6 +77,11 @@
#define GET_HA_ROWS GET_ULONG
#endif
+// Disable warning caused by SESSION_VAR() macro
+#ifdef __clang__
+#pragma clang diagnostic ignored "-Winvalid-offsetof"
+#endif
+
/*
special assert for sysvars. Tells the name of the variable,
and fails even in non-debug builds.