From: Uwe Hermann Date: Wed, 16 Oct 2013 15:37:09 +0000 (+0200) Subject: tests: Fix #include order. X-Git-Tag: pulseview-0.2.0~240 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6ab7877549ced42972b4f4f648e363e544cd1c7d;p=pulseview.git 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 ^ --- 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