]> granicus.if.org Git - p11-kit/commitdiff
common: Quiet down clang scanner with assertions
authorStef Walter <stef@thewalter.net>
Fri, 8 Aug 2014 15:39:40 +0000 (17:39 +0200)
committerStef Walter <stef@thewalter.net>
Fri, 8 Aug 2014 16:44:51 +0000 (18:44 +0200)
Quieten down the clang scanner by telling it to expect
that our test assertions fail

common/test.h

index 2d9fa692c8f0cbcf2894c34e5467fa490586025a..e28bb55d2008153105a0436e58c4e72cea7d154f 100644 (file)
@@ -111,7 +111,7 @@ void        p11_test_fail           (const char *filename,
                                      int line,
                                      const char *function,
                                      const char *message,
-                                     ...) GNUC_PRINTF(4, 5);
+                                     ...) GNUC_PRINTF(4, 5) CLANG_ANALYZER_NORETURN;
 
 void        p11_test                (void (* function) (void),
                                      const char *name,