Silence a result_independent_of_operands coverity false positive release-2.x.y

Thu, 15 May 2014 15:19:58 +0200

author
Tomasz Wasilczyk <twasilczyk@pidgin.im>
date
Thu, 15 May 2014 15:19:58 +0200
branch
release-2.x.y
changeset 36038
c986b1e3fa1d
parent 36037
e2ef692ff10a
child 36039
9725f7b50000
child 36040
8f2d69e2b8b5

Silence a result_independent_of_operands coverity false positive

libpurple/prpl.h file | annotate | diff | comparison | revisions
--- a/libpurple/prpl.h	Thu May 15 15:01:47 2014 +0200
+++ b/libpurple/prpl.h	Thu May 15 15:19:58 2014 +0200
@@ -1011,4 +1011,9 @@
 }
 #endif
 
+#ifdef __COVERITY__
+#undef PURPLE_PROTOCOL_PLUGIN_HAS_FUNC
+#define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) (prpl->member != NULL)
+#endif
+
 #endif /* _PRPL_H_ */

mercurial