Skip to content

Commit

Permalink
Misc: disable clang warning 'offset for non-POD type'
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs authored and midenok committed Mar 31, 2017
1 parent 339d7fd commit 614f896
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sql/sys_vars.ic
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 614f896

Please sign in to comment.