# HG changeset patch # User Sebastien Decugis # Date 1368688435 -28800 # Node ID 3ae22e5dc56ca622b1c0fd7c876a5520f4999dd5 # Parent 5e8f75f207dad68d37633abc4e5c2b1abb155e87 Fix a few compilation warnings/errors diff -r 5e8f75f207da -r 3ae22e5dc56c libfdcore/cnxctx.c --- a/libfdcore/cnxctx.c Thu May 16 15:00:47 2013 +0800 +++ b/libfdcore/cnxctx.c Thu May 16 15:13:55 2013 +0800 @@ -658,6 +658,7 @@ return ret; } +#ifndef DISABLE_SCTP static uint8_t * fd_cnx_realloc_msg_buffer(uint8_t * buffer, size_t expected_len, struct fd_msg_pmdl ** pmdl) { uint8_t * ret = NULL; @@ -666,6 +667,7 @@ CHECK_FCT_DO( fd_cnx_init_msg_buffer(ret, expected_len, pmdl), {free(ret); return NULL;} ); return ret; } +#endif /* DISABLE_SCTP */ static void free_rcvdata(void * arg) { diff -r 5e8f75f207da -r 3ae22e5dc56c tests/CMakeLists.txt --- a/tests/CMakeLists.txt Thu May 16 15:00:47 2013 +0800 +++ b/tests/CMakeLists.txt Thu May 16 15:13:55 2013 +0800 @@ -47,6 +47,7 @@ SET(testfifo_ADDITIONAL_LIB ${CLOCK_GETTIME_LIBS}) SET(testsess_ADDITIONAL_LIB ${CLOCK_GETTIME_LIBS}) SET(testloadext_ADDITIONAL_LIB ${CMAKE_DL_LIBS}) +SET(testmesg_stress_ADDITIONAL_LIB ${CLOCK_GETTIME_LIBS} ${CMAKE_DL_LIBS}) ############################## # App_acct test