/pidgin/main: c986b1e3fa1d: Silence a result_independent_of_oper...

Tomasz Wasilczyk <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: c986b1e3fa1ded60a921f691eabf2611ca8cb259
Author:	 Tomasz Wasilczyk <[email protected]>
Date:	 2014-05-15 15:19 +0200
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/c986b1e3fa1d

Description:

Silence a result_independent_of_operands coverity false positive

diffstat:

 libpurple/prpl.h |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (13 lines):

diff --git a/libpurple/prpl.h b/libpurple/prpl.h
--- a/libpurple/prpl.h
+++ b/libpurple/prpl.h
@@ -1011,4 +1011,9 @@ PurplePlugin *purple_find_prpl(const cha
 }
 #endif
 
+#ifdef __COVERITY__
+#undef PURPLE_PROTOCOL_PLUGIN_HAS_FUNC
+#define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) (prpl->member != NULL)
+#endif
+
 #endif /* _PRPL_H_ */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.