Guard MSVC pragma with ifdef _MSC_VER
Fix broken travis-ci with gcc -Werror [-Werror=unknown-pragmas].
This commit is contained in:
parent
9e5b8d99a3
commit
2c16453a9f
1 changed files with 2 additions and 0 deletions
|
@ -776,7 +776,9 @@ static SymEntry* ParseStructDecl (const char* Name)
|
|||
** about unary negation of unsigned, but it's intended.
|
||||
** Disable the warning for the next line only.
|
||||
*/
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable: 4146)
|
||||
#endif
|
||||
unsigned PaddingBits = -BitOffs % CHAR_BITS;
|
||||
|
||||
/* We need an anonymous name */
|
||||
|
|
Loading…
Add table
Reference in a new issue