- added -Wundef compiler flag and removed some of the resulting warnings

v1.6_develop_387
Michael Zillgith 3 years ago
parent bfc0e213c7
commit 2f3c7cae61

@ -144,6 +144,11 @@ if (SUPPORT_REDUNDANT_DECLS)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wredundant-decls")
endif(SUPPORT_REDUNDANT_DECLS)
check_c_compiler_flag("-Wundef" SUPPORT_UNDEF)
if (SUPPORT_UNDEF)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wundef")
endif(SUPPORT_UNDEF)
# write the detected stuff to this file
configure_file(
${CMAKE_CURRENT_LIST_DIR}/config/stack_config.h.cmake

@ -29,7 +29,7 @@
#include "mms_client_connection.h"
#include "ied_connection_private.h"
#if _MSC_VER
#ifdef _MSC_VER
#define snprintf _snprintf
#endif

@ -11,6 +11,8 @@
#include "asn_application.h" /* Application-visible API */
#define EMIT_ASN_DEBUG 0
#include "lib_memory.h"
#ifndef __NO_ASSERT_H__ /* Include assert.h only for internal use. */

Loading…
Cancel
Save