Addition of -Wall to CFLAGS
Cleanup warnings produced by above with the exception of those files requiring reorganisation
This commit is contained in:
@ -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
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user