Use new XML format with cppcheck
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 14 Dec 2014 15:10:54 +0000 (17:10 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 15 Dec 2014 06:52:40 +0000 (07:52 +0100)
The console output in Jenkins is full of warnings about the old format,
and apparently some issues are not reported in the old format.

Change-Id: I35a40444b39b697d765d65c14706ebe7d2dcf67d

tests/CppCheck.cmake

index 2b3e93386c63a4751ce8cbd4034f7923583e5c75..0f7917271f307c9a936f1804ca503c7a4f5c0a55 100644 (file)
@@ -67,7 +67,7 @@ if (CPPCHECK_EXECUTABLE AND UNIX)
     set(_outputopt --template=gcc)
     if (CPPCHECK_XML_OUTPUT)
         set(_outputext xml)
-        set(_outputopt --xml)
+        set(_outputopt --xml --xml-version=2)
     endif()
     set(_common_flags
         --enable=style -DLINUX -DHAVE_UNISTD_H