[epiphany/mcatanzaro/cppcheck: 9/16] Suppress varFuncNullUB cppcheck warning



commit d3c3315190401879b12976e4818678a3dfa4d76c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Nov 17 10:33:38 2019 -0600

    Suppress varFuncNullUB cppcheck warning
    
    To avoid undefined behavior, we have to cast NULL to (char *) when used
    as the last argument to a variadic function. But glib is heavily reliant
    on this UB and GTK apps have no hope if this doesn't work, so ignore it.
    
    Yes, this is bad, but we can't change it.

 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3c4424855..db2d086a2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,6 +30,7 @@ cppcheck:
     --suppress=shadowVar
     --suppress=variableScope
     --suppress=unusedFunction
+    --suppress=varFuncNullUB
     --template=gcc
 
 variables:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]