Browse Source

Fix build for C++11

Stefan Profanter 7 years ago
parent
commit
ff95247766
3 changed files with 3 additions and 3 deletions
  1. 1 1
      include/ua_plugin_network.h
  2. 1 1
      include/ua_types.h
  3. 1 1
      tests/fuzz/CMakeLists.txt

+ 1 - 1
include/ua_plugin_network.h

@@ -53,7 +53,7 @@ typedef enum {
                                 * is not done */
     UA_CONNECTION_ESTABLISHED, /* The socket is open and the connection
                                 * configured */
-    UA_CONNECTION_CLOSED,      /* The socket has been closed and the connection
+    UA_CONNECTION_CLOSED      /* The socket has been closed and the connection
                                 * will be deleted */
 } UA_ConnectionState;
 

+ 1 - 1
include/ua_types.h

@@ -508,7 +508,7 @@ typedef struct UA_DataType UA_DataType;
 typedef enum {
     UA_VARIANT_DATA,          /* The data has the same lifecycle as the
                                  variant */
-    UA_VARIANT_DATA_NODELETE, /* The data is "borrowed" by the variant and
+    UA_VARIANT_DATA_NODELETE /* The data is "borrowed" by the variant and
                                  shall not be deleted at the end of the
                                  variant's lifecycle. */
 } UA_VariantStorageType;

+ 1 - 1
tests/fuzz/CMakeLists.txt

@@ -6,7 +6,7 @@ include_directories(${PROJECT_SOURCE_DIR}/plugins)
 include_directories(${PROJECT_BINARY_DIR}/src_generated)
 
 remove_definitions(-std=c99 -Wmissing-prototypes -Wstrict-prototypes)
-
+set (CMAKE_CXX_STANDARD 11)
 
 if(NOT "x${CMAKE_C_COMPILER_ID}" STREQUAL "xClang")
     MESSAGE(FATAL_ERROR "To build fuzzing, you need to use Clang as the compiler")