]> 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:54:18 +0000 (10:54 +1100)
(cherry picked from commit a4186b18672e6698d42aec3a5dd68a3b289c55ec)
(cherry picked from commit d17558a8744db71d389482e75ca74f32d29e9082)

lib/dns/rdata/in_1/wks_11.c

index 202af3d0a50ed53faa6e8200b63059e1f9513538..3fd6108184176da21c7db6d40d931ce5610aa616 100644 (file)
@@ -15,8 +15,6 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $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;