demo: adapt to GCC 6

Issue #2372
This commit is contained in:
Christian Helmuth 2017-04-13 12:29:39 +02:00
parent 6b2d8a740d
commit df81d7a374
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ SRC_C = png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c pngread.c \
CC_OPT += -nostdinc -funroll-loops -DPNG_USER_CONFIG
LIBS = mini_c libz_static
CC_WARN = -Wall -Wno-address
CC_WARN = -Wall -Wno-address -Wno-misleading-indentation
vpath % $(REP_DIR)/src/lib/libpng/contrib

View File

@ -70,7 +70,7 @@ char *strcpy(char *dest, const char *src)
char *strcat(char *dest, const char *src)
{ printf("%s: not implemented\n", __func__); return 0; }
inline size_t min(size_t v1, size_t v2) { return v1 < v2 ? v1 : v2; }
static inline size_t min(size_t v1, size_t v2) { return v1 < v2 ? v1 : v2; }
char *strncpy(char *dst, const char *src, size_t n)
{