gmacros: Only set G_ANALYZER_ANALYZING to 1 when clang static analyzer is in use
authorTing-Wei Lan <lantw@src.gnome.org>
Thu, 1 Jan 2015 05:28:21 +0000 (13:28 +0800)
committerTing-Wei Lan <lantw@src.gnome.org>
Sun, 28 Jun 2015 20:11:39 +0000 (04:11 +0800)
commitd7a1d890c109c8610333f938dee15e5d938ee8d8
tree32f3ca5d974eb7cf169aea6dd7ff3958f3a53f9c
parentcb86c222cce2436d6a213e574fbba159b6f34010
gmacros: Only set G_ANALYZER_ANALYZING to 1 when clang static analyzer is in use

We set G_ANALYZER_ANALYZING to 1 when clang supporting static analyzing before,
but this will cause compilation error when -Werror=return-type is used and the
static analyzer is not in use because g_error static function only has
__attribute__((analyzer_noreturn)), which is useless for normal compilation.

https://bugzilla.gnome.org/show_bug.cgi?id=741901
glib/gmacros.h