mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-04-16 11:54:58 +00:00
Add pragma to ignore -Wundef (#418)
also ignore Wc++-compat when not in use
This commit is contained in:
parent
a3865ecc3c
commit
dae0583ee5
1 changed files with 2 additions and 0 deletions
|
@ -654,6 +654,7 @@ typedef struct {
|
|||
|
||||
#ifndef __STRICT_ANSI__
|
||||
#if defined(__GNUC__) || defined(__llvm__)
|
||||
#pragma GCC diagnostic ignored "-Wundef" /* complaints about __ASSEMBLER__/__LINKER__ */
|
||||
#pragma GCC diagnostic ignored "-Wsign-compare" /* lint needs to change */
|
||||
#pragma GCC diagnostic ignored "-Wtype-limits" /* makes macros unsafe */
|
||||
#pragma GCC diagnostic ignored "-Woverflow" /* also breaks macros */
|
||||
|
@ -670,6 +671,7 @@ typedef struct {
|
|||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" /* libcxx */
|
||||
#ifndef __cplusplus
|
||||
#pragma GCC diagnostic ignored "-Wimplicit-int"
|
||||
#pragma GCC diagnostic ignored "-Wc++-compat"
|
||||
#endif /* C++ */
|
||||
#endif /* GCC || LLVM */
|
||||
#if defined(__GNUC__) && !defined(__llvm__)
|
||||
|
|
Loading…
Add table
Reference in a new issue