Skip to content

Commit 9ebacb7

Browse files
authored
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.
1 parent 6ac3d3b commit 9ebacb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libc/integral/c.inc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
#define COSMOPOLITAN_CXX_USING_
77
#endif
88

9+
#ifndef __cplusplus
10+
#pragma GCC diagnostic warning "-Wimplicit-function-declaration"
11+
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
12+
#pragma GCC diagnostic warning "-Wint-conversion"
13+
#endif
14+
915
#if !defined(__GNUC__) && __cplusplus + 0 >= 201103L
1016
#define typeof(x) decltype(x)
1117
#elif !defined(__GNUC__) && __STDC_VERSION__ + 0 < 201112

0 commit comments

Comments
 (0)