# HG changeset patch # User Sebastien Decugis # Date 1358609748 -3600 # Node ID ed611e15f74442614b3e48066a17a55f8dbc5a8c # Parent b772af2008652c6ccac90c984bd0bd75d4c9b4e8 Fix a few warnings, thank you Thomas again diff -r b772af200865 -r ed611e15f744 libfdcore/core.c --- a/libfdcore/core.c Wed Dec 19 23:55:22 2012 +0100 +++ b/libfdcore/core.c Sat Jan 19 16:35:48 2013 +0100 @@ -35,7 +35,9 @@ #include "fdcore-internal.h" +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include +#pragma GCC diagnostic warning "-Wdeprecated-declarations" /* The static configuration structure */ static struct fd_config g_conf; diff -r b772af200865 -r ed611e15f744 libfdcore/peers.c --- a/libfdcore/peers.c Wed Dec 19 23:55:22 2012 +0100 +++ b/libfdcore/peers.c Sat Jan 19 16:35:48 2013 +0100 @@ -542,7 +542,7 @@ /* Send the new connection event to the PSM */ CHECK_MALLOC_DO( ev_data = malloc(sizeof(struct cnx_incoming)), { ret = ENOMEM; goto out; } ); - memset(ev_data, 0, sizeof(ev_data)); + memset(ev_data, 0, sizeof(*ev_data)); ev_data->cer = msg; ev_data->cnx = *cnx; diff -r b772af200865 -r ed611e15f744 libfdproto/msg_log.c --- a/libfdproto/msg_log.c Wed Dec 19 23:55:22 2012 +0100 +++ b/libfdproto/msg_log.c Sat Jan 19 16:35:48 2013 +0100 @@ -160,6 +160,7 @@ TODO("Log to arg directory in a new file"); TODO("Log a note to debug stream"); break; + default: } /* For file methods, let's parse the message so it looks better */ @@ -197,6 +198,7 @@ case FD_MSG_LOGTO_DIR: TODO("close?"); break; + default: } }