Fix issues found by LLVM checker.
[freeradius.git] / Make.inc.in
index 73c4b2d..771231f 100644 (file)
@@ -98,4 +98,11 @@ endif
 endif
 
 #  http://clang.llvm.org/StaticAnalysis.html
+#
+#  $ make scan | sed "s/.*Run '//;s/'.*//" > scan.sh
+#  $ ./scan.sh
+#
 SCAN_BUILD     = /path/to/checker-0.167/scan-build
+ifeq ($(SCAN),yes)
+CC             := $(SCAN_BUILD) gcc -DFR_SCAN_BUILD
+endif