mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-26 15:59:04 +00:00
Detect implicit function declarations
This was suppressed recently and it's the worst possible idea when doing greenfield software development with C. I'm so sorry it slipped through. If the C standards committee was smart they would change the standard so that implicit int becomes implicit long. Then problems such as this will never occur and we could even use traditional C safely if we wanted too.
This commit is contained in:
parent
ebe1cbb1e3
commit
185e957696
1 changed files with 0 additions and 4 deletions
|
@ -531,10 +531,6 @@ typedef struct {
|
||||||
#pragma GCC diagnostic ignored "-Wold-style-definition" /* orwellian bullsh */
|
#pragma GCC diagnostic ignored "-Wold-style-definition" /* orwellian bullsh */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__cplusplus) && defined(__GNUC__) && __GNUC__ >= 14
|
|
||||||
#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
#define DebugBreak() __asm__("int3")
|
#define DebugBreak() __asm__("int3")
|
||||||
#elif defined(__aarch64__)
|
#elif defined(__aarch64__)
|
||||||
|
|
Loading…
Add table
Reference in a new issue