mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
Convert GCC 14 errors back to warnings (#1247)
https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors Changing these to warnings helps build code with `cosmocc`. Perhaps this can be a patch to `cosmocc` or skipped entirely.
This commit is contained in:
parent
6ac3d3b804
commit
9ebacb7892
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,12 @@
|
||||||
#define COSMOPOLITAN_CXX_USING_
|
#define COSMOPOLITAN_CXX_USING_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
|
#pragma GCC diagnostic warning "-Wimplicit-function-declaration"
|
||||||
|
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
|
||||||
|
#pragma GCC diagnostic warning "-Wint-conversion"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(__GNUC__) && __cplusplus + 0 >= 201103L
|
#if !defined(__GNUC__) && __cplusplus + 0 >= 201103L
|
||||||
#define typeof(x) decltype(x)
|
#define typeof(x) decltype(x)
|
||||||
#elif !defined(__GNUC__) && __STDC_VERSION__ + 0 < 201112
|
#elif !defined(__GNUC__) && __STDC_VERSION__ + 0 < 201112
|
||||||
|
|
Loading…
Add table
Reference in a new issue