From aaca1a5888a72c8b549bde9d14843b3a544a89c6 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Fri, 7 Sep 2012 09:08:34 +0000
Subject: [PATCH] Task #514: Filter casarest warnings

---
 jenkins_make | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/jenkins_make b/jenkins_make
index 54079032ad4..13c8bad0dc3 100755
--- a/jenkins_make
+++ b/jenkins_make
@@ -37,6 +37,12 @@ if (m#^([/._ A-Za-z0-9-]+):([0-9]+):[0-9:]* warning: +(.*)$#) {
   next if $file =~ m#/blitz/compiler.h$#        && $warning =~ /^"restrict" redefined/;
   next if $file =~ m#/casacore/casa/aipsdef.h$# && $warning =~ /^this is the location of the previous definition/;
 
+  # CasaRest warnings
+  next if $file =~ m#^/opt/cep/casarest/# && $warning =~ /^type qualifiers ignored on function return type/;
+  next if $file =~ m#^/opt/cep/casarest/# && $warning =~ /^'[^']+' was hidden/;
+  next if $file =~ m#^/opt/cep/casarest/# && $warning =~ /^by '[^']+'/;
+  next if $file =~ m#^/opt/cep/casarest/# && $warning =~ /^unused parameter/;
+
   # Dynamic parts of a static executable
   next if $warning =~ /^Using '[^']+' in statically linked applications requires at runtime the shared libraries/;
 }
-- 
GitLab