From dd4b44d36974e27aa662ec85e8c23387ca963479 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Mon, 11 Feb 2019 11:07:43 +0100
Subject: [PATCH] [Jenkins] Suppressed remaining warnings.

---
 Applications/FileIO/Legacy/createSurface.cpp |  4 ++++
 Jenkinsfile                                  | 15 +++++++++------
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/Applications/FileIO/Legacy/createSurface.cpp b/Applications/FileIO/Legacy/createSurface.cpp
index 0329bc10b22..cf893501b57 100644
--- a/Applications/FileIO/Legacy/createSurface.cpp
+++ b/Applications/FileIO/Legacy/createSurface.cpp
@@ -82,7 +82,11 @@ bool createSurface(GeoLib::Polyline const& ply,
     std::string gmsh_command =
         "gmsh -2 -algo meshadapt \"" + file_base_name + ".geo\"";
     gmsh_command += " -o \"" + file_base_name + ".msh\"";
+    // Temporarilly disable unused result warning
+    #pragma GCC diagnostic push
+    #pragma GCC diagnostic ignored "-Wunused-result"
     std::system(gmsh_command.c_str());
+    #pragma GCC diagnostic pop
     auto surface_mesh =
         FileIO::GMSH::readGMSHMesh("\"" + file_base_name + ".msh\"");
     if (!surface_mesh)
diff --git a/Jenkinsfile b/Jenkinsfile
index 42fcf6be1d7..df4ce972a4f 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -113,9 +113,10 @@ pipeline {
                 GoogleTest(pattern: 'build/Tests/testrunner.xml')
               ])
               recordIssues enabledForFailure: true, filters: [
-                excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*')],
+                excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*'),
+                excludeMessage('.*tmpnam.*')],
                 tools: [gcc4(name: 'GCC', pattern: 'build/build.log')],
-                unstableTotalAll: 3
+                unstableTotalAll: 1
               recordIssues enabledForFailure: true, filters: [
                   excludeFile('-'), excludeFile('.*Functional\\.h'),
                   excludeFile('.*gmock-.*\\.h'), excludeFile('.*gtest-.*\\.h')
@@ -170,10 +171,11 @@ pipeline {
           post {
             always {
               recordIssues enabledForFailure: true, filters: [
-                excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*')],
+                excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*'),
+                excludeMessage('.*tmpnam.*')],
                 tools: [gcc4(name: 'GCC-GUI', id: 'gcc4-gui',
                              pattern: 'build/build.log')],
-                unstableTotalAll: 4
+                unstableTotalAll: 1
             }
             success { archiveArtifacts 'build/*.tar.gz,build/conaninfo.txt' }
           }
@@ -387,9 +389,10 @@ pipeline {
                 GoogleTest(pattern: 'build/Tests/testrunner.xml')
               ])
               recordIssues enabledForFailure: true, filters: [
-                excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*')],
+                excludeFile('.*qrc_icons\\.cpp.*'), excludeFile('.*QVTKWidget.*'),
+                excludeCategory('-Wdeprecated-declarations')],
                 tools: [clang(name: 'Clang (macOS)', pattern: 'build/build.log',
-                  id: 'clang-mac')], unstableTotalAll: 3
+                  id: 'clang-mac')], unstableTotalAll: 1
             }
             success {
               archiveArtifacts 'build/*.tar.gz,build/*.dmg,build/conaninfo.txt'
-- 
GitLab