From 6ab7877549ced42972b4f4f648e363e544cd1c7d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 16 Oct 2013 17:37:09 +0200 Subject: [PATCH] tests: Fix #include order. should be included first (as the comment says), otherwise a warning can be the result (error in this case due to -Werror usage): [ 90%] Building CXX object test/CMakeFiles/pulseview-test.dir/data/decoder.cpp.o In file included from /usr/include/python3.2mu/Python.h:8:0, from [....]/include/libsigrokdecode/libsigrokdecode.h:25, from [....]/test/data/decoder.cpp:23: /usr/include/python3.2mu/pyconfig.h:1182:0: error: "_POSIX_C_SOURCE" redefined [-Werror] #define _POSIX_C_SOURCE 200112L ^ --- test/data/decoder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/data/decoder.cpp b/test/data/decoder.cpp index 8ea5d181..4a74c417 100644 --- a/test/data/decoder.cpp +++ b/test/data/decoder.cpp @@ -18,9 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include - #include /* First, so we avoid a _POSIX_C_SOURCE warning. */ +#include #include -- 2.30.2