From 89809e051d2743259ad27fbc6ccb087ef475058a Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 6 Apr 2018 21:49:51 -0700 Subject: [PATCH] compile with latest gcc (untested on old) --- xwords4/linux/Makefile | 2 +- xwords4/linux/linuxbt.c | 2 +- xwords4/linux/uuidhack.c | 2 +- xwords4/linux/uuidhack.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xwords4/linux/Makefile b/xwords4/linux/Makefile index 801a2e8e2..2a8b56b68 100644 --- a/xwords4/linux/Makefile +++ b/xwords4/linux/Makefile @@ -21,7 +21,7 @@ BUILD_DIR ?= . ifeq ($(MEMDEBUG),TRUE) DEFINES = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING -DNUMBER_KEY_AS_INDEX DEFINES += -DCOMMS_CHECKSUM -CFLAGS += -g $(GPROFFLAG) -Wall -Wunused-parameter -Wcast-align -Werror -O0 +CFLAGS += -g $(GPROFFLAG) -Wall -Wunused-parameter -Wcast-align -Werror -O0 -Wno-format-truncation # DEFINES += -DDEBUG_HASHING CFLAGS += -DDEBUG_TS -rdynamic PLATFORM = obj_linux_memdbg diff --git a/xwords4/linux/linuxbt.c b/xwords4/linux/linuxbt.c index b437c2eb6..f3fb2f86f 100644 --- a/xwords4/linux/linuxbt.c +++ b/xwords4/linux/linuxbt.c @@ -85,7 +85,7 @@ lbt_make( MPFORMAL XP_Bool amMaster ) } /* lbt_make */ static L2_RF_ADDR* -getL2Addr( const CommsAddrRec const* addrP, L2_RF_ADDR* const saddr ) +getL2Addr( const CommsAddrRec* addrP, L2_RF_ADDR* const saddr ) { LOG_FUNC(); L2_RF_ADDR* result = NULL; diff --git a/xwords4/linux/uuidhack.c b/xwords4/linux/uuidhack.c index f0665c8d6..7c4c5b087 100644 --- a/xwords4/linux/uuidhack.c +++ b/xwords4/linux/uuidhack.c @@ -29,7 +29,7 @@ #include void -str2uuid( const char const* str, void* out, size_t uuidSize ) +str2uuid( const char* str, void* out, size_t uuidSize ) { uuid_t uuid; int err = uuid_parse( str, uuid ); diff --git a/xwords4/linux/uuidhack.h b/xwords4/linux/uuidhack.h index 7e9ef67f8..f7b169b15 100644 --- a/xwords4/linux/uuidhack.h +++ b/xwords4/linux/uuidhack.h @@ -20,6 +20,6 @@ #ifndef _UUIDHACK_H_ #define _UUIDHACK_H_ -void str2uuid( const char const* str, void* uuid, size_t uuidSize ); +void str2uuid( const char* str, void* uuid, size_t uuidSize ); #endif