Addition of -Wall to CFLAGS

Cleanup warnings produced by above with the exception of those files requiring reorganisation
This commit is contained in:
Mark Riddoch
2013-06-17 14:25:32 +02:00
parent 1300c5d089
commit 6afc2e432b
7 changed files with 10 additions and 8 deletions

View File

@ -21,7 +21,7 @@
# 17/06/13 Mark Riddoch Addition of dependency generation
CC=cc
CFLAGS=-c -I/usr/include -I../include
CFLAGS=-c -I/usr/include -I../include -Wall
LDFLAGS=-rdynamic
SRCS= atomic.c buffer.c spinlock.c gateway.c gateway_mysql_protocol.c gw_utils.c \
utils.c dcb.c load_utils.c

View File

@ -164,7 +164,7 @@ int epollfd = -1; // Need to work out how to get this
void
printDCB(DCB *dcb)
{
(void)printf("DCB: 0x%x\n", (void *)dcb);
(void)printf("DCB: 0x%p\n", (void *)dcb);
(void)printf("\tDCB state: %s\n", gw_dcb_state2string(dcb->state));
(void)printf("\tQueued write data: %d\n", gwbuf_length(dcb->writeq));
(void)printf("\tStatistics:\n");

View File

@ -163,8 +163,6 @@ void *handle;
static MODULES *
find_module(const char *module)
{
MODULES *ptr = registered;
while (registered)
if (strcmp(registered->module, module))
return registered;