mirror of
https://github.com/mmozeiko/pkg2zip.git
synced 2026-09-02 19:23:09 +03:00
ignore warning with pragma in source code
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user