]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Set WITH_VERIFY_PTR during clang scan so that NULL code paths result in exit
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Apr 2018 05:50:17 +0000 (11:50 +0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Apr 2018 05:53:37 +0000 (11:53 +0600)
src/include/build.h

index 105f59ee7fda9eaf5fdb61c7509c843d4aaf0d21..f204818d1d778d14e5ccd8006db2892d259ddb4c 100644 (file)
 #ifdef __cplusplus
 extern "C" {
 #endif
+
+/*
+ *     Reduce spurious errors from clang scan by having
+ *     all paths that find the da to be NULL, result
+ *     in program exit.
+ */
+#ifdef __clang_analyzer__
+#  define WITH_VERIFY_PTR      1
+#endif
+
 /*
  *     The ubiquitous stringify macros
  */