From 3f042c4778286fcbb52537d8be0baa65aa05abd0 Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Wed, 21 Sep 2016 09:03:39 +0200 Subject: [PATCH] tests: fix regression link error --- CMakeLists.txt | 1 + tests/test_stl_infos.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 64e6c6b..0b8ded6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -323,6 +323,7 @@ if(MSVC) # Treat some warnings as errors set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /we4133") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /we4013") # Enable /Zc:strictStrings when msvc_ver > 2012 and build_type != Debug if((MSVC_VERSION GREATER 1700) AND NOT (CMAKE_BUILD_TYPE STREQUAL "Debug")) diff --git a/tests/test_stl_infos.c b/tests/test_stl_infos.c index 2bd6dec..438d1bf 100644 --- a/tests/test_stl_infos.c +++ b/tests/test_stl_infos.c @@ -34,6 +34,7 @@ #include "../src/gmio_core/error.h" #include "../src/gmio_stl/stl_error.h" #include "../src/gmio_stl/stl_infos.h" +#include "../src/gmio_core/internal/helper_stream.h" #include #include