]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
redefine CHECK so cppcheck see the definition
authorMark Andrews <marka@isc.org>
Tue, 20 Feb 2018 01:53:27 +0000 (12:53 +1100)
committerMark Andrews <marka@isc.org>
Sun, 25 Feb 2018 23:40:10 +0000 (10:40 +1100)
(cherry picked from commit a4186b18672e6698d42aec3a5dd68a3b289c55ec)

lib/dns/rdata/in_1/wks_11.c

index d94395f9d77f062f32ffcec5acc1c3188ab6e990..5050534c6a8de7a02c0db67d4588de92bb4e1d3c 100644 (file)
@@ -6,8 +6,6 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-/* $Id$ */
-
 /* Reviewed: Fri Mar 17 15:01:49 PST 2000 by explorer */
 
 #ifndef RDATA_IN_1_WKS_11_C
 #include <isc/netdb.h>
 #include <isc/once.h>
 
+/*
+ * Redefine CHECK here so cppcheck "sees" the define.
+ */
+#ifndef CHECK
+#define CHECK(op)                                              \
+       do { result = (op);                                     \
+               if (result != ISC_R_SUCCESS) goto cleanup;      \
+       } while (0)
+#endif
+
 #define RRTYPE_WKS_ATTRIBUTES (0)
 
 static isc_mutex_t wks_lock;