Reduce false positives in static analysis
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Sep 2009 23:16:11 +0000 (19:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Sep 2009 23:20:06 +0000 (19:20 -0400)
commit8b3853b8a1cc94767c5391808274f931a48f6cbb
tree620ff014030c943076843b779da58ca3aaa86037
parent53fc10d2695f917db530c9a3f166e45be59d1d3a
Reduce false positives in static analysis

Tools like clang fail to recognize that stanzas like
g_return_if_fail (GTK_IS_FOO (w)) guarantee w != NULL. By minimally
rewriting the type-checking macros, we can avoid these false positives.
gobject/gtype.h