kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

6_10_warning_directive.c (549B)


      1 /* ยง6.10 (preprocessing directives) -- `#warning` is a non-fatal
      2  * diagnostic recognised by every mainstream C preprocessor since the
      3  * 1990s and standardised in C23. kit's `process_directive` doesn't
      4  * route it, so it falls into the catch-all and panics with
      5  * "unsupported directive". That makes any source tree whose headers
      6  * issue `#warning` unbuildable -- including the macOS SDK's
      7  * `sys/cdefs.h`, which emits one whenever `__GNUC__ < 4`. */
      8 #warning "non-fatal diagnostic; parsing should continue"
      9 
     10 int test_main(void) { return 42; }