~strahinja/slw2gmi

cd9a54801f8bcaa8de4b51c5225ab3697140f57d — Страхиња Радић 9 days ago 118469f
Added GCC check to avoid problems with #pragma GCC

Signed-off-by: Страхиња Радић <contact@strahinja.org>
1 files changed, 4 insertions(+), 0 deletions(-)

M defs.h
M defs.h => defs.h +4 -0
@@ 85,8 85,10 @@ typedef struct

typedef int (*csv_callback_t)(FILE* output, uint8_t** csv_header, uint8_t** csv_register);

#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-const-variable"
#endif
#define MAX_HEADING_LEVEL  4
#define MAX_CSV_REGISTERS  9



@@ 132,7 134,9 @@ typedef int (*csv_callback_t)(FILE* output, uint8_t** csv_header, uint8_t** csv_
#define ST_CS_COND_NONEMPTY (1 << 5)
#define ST_CS_COND_EMPTY    (1 << 6)
#define ST_CS_ESCAPE        (1 << 7)
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif

#endif /* __DEFS_H */