ignore warning with pragma in source code

This commit is contained in:
Martins Mozeiko
2018-07-15 13:12:18 -07:00
parent 0b60c668b8
commit 9222c4e002
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ SRC=${wildcard pkg2zip*.c} miniz_tdef.c puff.c
OBJ=${SRC:.c=.o}
DEP=${SRC:.c=.d}
CFLAGS=-std=c99 -pipe -fvisibility=hidden -Wall -Wextra -Werror -Wno-format-truncation -DNDEBUG -D_GNU_SOURCE -O2
CFLAGS=-std=c99 -pipe -fvisibility=hidden -Wall -Wextra -Werror -DNDEBUG -D_GNU_SOURCE -O2
LDFLAGS=-s
.PHONY: all clean
+6
View File
@@ -11,6 +11,12 @@
#include <string.h>
#include <stdio.h>
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wformat-truncation"
#endif
#define PKG_HEADER_SIZE 192
#define PKG_HEADER_EXT_SIZE 64