suppression of spurious warnings

This commit is contained in:
ESL 2024-07-23 01:48:56 -04:00
parent ea15417b4e
commit b041175249
3 changed files with 16 additions and 2 deletions

5
n.h
View file

@ -1,5 +1,10 @@
/* n.h -- generated via skint nsf2h.ssc n.sf */ /* n.h -- generated via skint nsf2h.ssc n.sf */
#if defined(__clang__)
#pragma GCC diagnostic ignored "-Wparentheses-equality"
#endif
/* this is for MS headers; shouldn't affect others */
#define _CRT_SECURE_NO_WARNINGS 1
/* standard includes */ /* standard includes */
#include <stdio.h> #include <stdio.h>

View file

@ -20,7 +20,13 @@
(define (module-name filename) (define (module-name filename)
(path-strip-extension (path-strip-directory filename))) (path-strip-extension (path-strip-directory filename)))
(define *prelude* " (define *prelude*
"#if defined(__clang__)
#pragma GCC diagnostic ignored \"-Wparentheses-equality\"
#endif
/* this is for MS headers; shouldn't affect others */
#define _CRT_SECURE_NO_WARNINGS 1
/* standard includes */ /* standard includes */
#include <stdio.h> #include <stdio.h>
#include <stddef.h> #include <stddef.h>

5
s.h
View file

@ -1,4 +1,4 @@
/* k.h -- system-dependent stuff */ /* s.h -- system-dependent stuff */
#if defined(__GNUC__) && defined(__linux) #if defined(__GNUC__) && defined(__linux)
#ifdef _FEATURES_H #ifdef _FEATURES_H
@ -14,6 +14,9 @@
#endif #endif
#endif #endif
/* this is for MS headers; shouldn't affect others */
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>