mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 02:08:30 +00:00
parent
8a6a1e25b1
commit
4651962070
2 changed files with 15 additions and 14 deletions
|
@ -137,6 +137,7 @@ MATHEMATICAL = \
|
||||||
-fwrapv
|
-fwrapv
|
||||||
|
|
||||||
DEFAULT_CPPFLAGS = \
|
DEFAULT_CPPFLAGS = \
|
||||||
|
-DCOSMO \
|
||||||
-DMODE='"$(MODE)"' \
|
-DMODE='"$(MODE)"' \
|
||||||
-DIMAGE_BASE_VIRTUAL=$(IMAGE_BASE_VIRTUAL) \
|
-DIMAGE_BASE_VIRTUAL=$(IMAGE_BASE_VIRTUAL) \
|
||||||
-nostdinc \
|
-nostdinc \
|
||||||
|
|
|
@ -653,17 +653,17 @@ typedef uint64_t uintmax_t;
|
||||||
|
|
||||||
#ifndef __STRICT_ANSI__
|
#ifndef __STRICT_ANSI__
|
||||||
#if defined(__GNUC__) || defined(__llvm__)
|
#if defined(__GNUC__) || defined(__llvm__)
|
||||||
#pragma GCC diagnostic ignored "-Wsign-compare" /* lint needs to change */
|
#pragma GCC diagnostic ignored "-Wsign-compare" /* lint needs to change */
|
||||||
#pragma GCC diagnostic ignored "-Wtype-limits" /* makes macros unsafe */
|
#pragma GCC diagnostic ignored "-Wtype-limits" /* makes macros unsafe */
|
||||||
#pragma GCC diagnostic ignored "-Woverflow" /* also breaks macros */
|
#pragma GCC diagnostic ignored "-Woverflow" /* also breaks macros */
|
||||||
#pragma GCC diagnostic ignored "-Wformat" /* forces only gnu pf */
|
#pragma GCC diagnostic ignored "-Wformat" /* forces only gnu pf */
|
||||||
#pragma GCC diagnostic ignored "-Wunused-parameter" /* extreme prejudice */
|
#pragma GCC diagnostic ignored "-Wunused-parameter" /* extreme prejudice */
|
||||||
#pragma GCC diagnostic ignored "-Wunused-function" /* contradicts dce! */
|
#pragma GCC diagnostic ignored "-Wunused-function" /* contradicts dce! */
|
||||||
#pragma GCC diagnostic ignored "-Wunused-variable" /* belongs in tidy */
|
#pragma GCC diagnostic ignored "-Wunused-variable" /* belongs in tidy */
|
||||||
#pragma GCC diagnostic ignored "-Wformat-extra-args" /* is also broken */
|
#pragma GCC diagnostic ignored "-Wformat-extra-args" /* is also broken */
|
||||||
#pragma GCC diagnostic ignored "-Wparentheses" /* annoying tidy */
|
#pragma GCC diagnostic ignored "-Wparentheses" /* annoying tidy */
|
||||||
#pragma GCC diagnostic ignored "-Wdangling-else" /* come on tidy */
|
#pragma GCC diagnostic ignored "-Wdangling-else" /* come on tidy */
|
||||||
#pragma GCC diagnostic ignored "-Wformat-security" /* come on tidy */
|
#pragma GCC diagnostic ignored "-Wformat-security" /* come on tidy */
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
#pragma GCC diagnostic ignored "-Wimplicit-int"
|
#pragma GCC diagnostic ignored "-Wimplicit-int"
|
||||||
#endif /* C++ */
|
#endif /* C++ */
|
||||||
|
@ -681,7 +681,7 @@ typedef uint64_t uintmax_t;
|
||||||
#if __GNUC__ >= 8
|
#if __GNUC__ >= 8
|
||||||
#pragma GCC diagnostic ignored "-Wstringop-truncation"
|
#pragma GCC diagnostic ignored "-Wstringop-truncation"
|
||||||
#pragma GCC diagnostic ignored "-Wstringop-overflow" /* breaks strndup */
|
#pragma GCC diagnostic ignored "-Wstringop-overflow" /* breaks strndup */
|
||||||
#endif /* GCC8+ */
|
#endif /* GCC8+ */
|
||||||
#if __GNUC__ + 0 >= 9
|
#if __GNUC__ + 0 >= 9
|
||||||
#pragma GCC diagnostic ignored /* "always true" breaks dce */ "-Waddress"
|
#pragma GCC diagnostic ignored /* "always true" breaks dce */ "-Waddress"
|
||||||
#endif /* GCC9+ */
|
#endif /* GCC9+ */
|
||||||
|
@ -692,8 +692,8 @@ typedef uint64_t uintmax_t;
|
||||||
"-Wincompatible-pointer-types-discards-qualifiers"
|
"-Wincompatible-pointer-types-discards-qualifiers"
|
||||||
#pragma clang diagnostic ignored "-Wbuiltin-requires-header"
|
#pragma clang diagnostic ignored "-Wbuiltin-requires-header"
|
||||||
#pragma clang diagnostic ignored "-Wparentheses-equality" /*-save-temps*/
|
#pragma clang diagnostic ignored "-Wparentheses-equality" /*-save-temps*/
|
||||||
#pragma clang diagnostic ignored "-Wunused-value" /*({-save-temps})*/
|
#pragma clang diagnostic ignored "-Wunused-value" /*({-save-temps})*/
|
||||||
#pragma clang diagnostic ignored "-Wstring-plus-int" /* special ed */
|
#pragma clang diagnostic ignored "-Wstring-plus-int" /* special ed */
|
||||||
#pragma clang diagnostic ignored "-Wunused-value" /* extreme prejudice */
|
#pragma clang diagnostic ignored "-Wunused-value" /* extreme prejudice */
|
||||||
#pragma clang diagnostic ignored "-Wbuiltin-requires-header"
|
#pragma clang diagnostic ignored "-Wbuiltin-requires-header"
|
||||||
#pragma clang diagnostic ignored \
|
#pragma clang diagnostic ignored \
|
||||||
|
@ -730,7 +730,7 @@ typedef uint64_t uintmax_t;
|
||||||
#pragma GCC diagnostic error "-Wredundant-decls"
|
#pragma GCC diagnostic error "-Wredundant-decls"
|
||||||
#if __GNUC__ >= 6
|
#if __GNUC__ >= 6
|
||||||
#pragma GCC diagnostic error "-Wnonnull-compare"
|
#pragma GCC diagnostic error "-Wnonnull-compare"
|
||||||
#if !defined(MODE_DBG) && !defined(STACK_FRAME_UNLIMITED)
|
#if defined(COSMO) && !defined(MODE_DBG) && !defined(STACK_FRAME_UNLIMITED)
|
||||||
#pragma GCC diagnostic error "-Wframe-larger-than=4096"
|
#pragma GCC diagnostic error "-Wframe-larger-than=4096"
|
||||||
#if __GNUC__ >= 9
|
#if __GNUC__ >= 9
|
||||||
#pragma GCC diagnostic error "-Walloca-larger-than=1024"
|
#pragma GCC diagnostic error "-Walloca-larger-than=1024"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue