Ticket #40590: patch-revert-409a6db3.diff
File patch-revert-409a6db3.diff, 2.0 KB (added by su-v, 11 years ago) |
---|
-
glib/gmessages.h
old new 125 125 GLIB_AVAILABLE_IN_ALL 126 126 void g_return_if_fail_warning (const char *log_domain, 127 127 const char *pretty_function, 128 const char *expression) G_ANALYZER_NORETURN;128 const char *expression); 129 129 GLIB_AVAILABLE_IN_ALL 130 130 void g_warn_message (const char *domain, 131 131 const char *file, 132 132 int line, 133 133 const char *func, 134 const char *warnexpr) G_ANALYZER_NORETURN;134 const char *warnexpr); 135 135 GLIB_DEPRECATED 136 136 void g_assert_warning (const char *log_domain, 137 137 const char *file, … … 143 143 #ifndef G_LOG_DOMAIN 144 144 #define G_LOG_DOMAIN ((gchar*) 0) 145 145 #endif /* G_LOG_DOMAIN */ 146 147 #if defined(G_HAVE_ISO_VARARGS) && !G_ANALYZER_ANALYZING 146 #ifdef G_HAVE_ISO_VARARGS 148 147 /* for(;;) ; so that GCC knows that control doesn't go past g_error(). 149 148 * Put space before ending semicolon to avoid C++ build warnings. 150 149 */ … … 167 166 #define g_debug(...) g_log (G_LOG_DOMAIN, \ 168 167 G_LOG_LEVEL_DEBUG, \ 169 168 __VA_ARGS__) 170 #elif defined(G_HAVE_GNUC_VARARGS) && !G_ANALYZER_ANALYZING169 #elif defined(G_HAVE_GNUC_VARARGS) 171 170 #define g_error(format...) G_STMT_START { \ 172 171 g_log (G_LOG_DOMAIN, \ 173 172 G_LOG_LEVEL_ERROR, \ … … 190 189 #else /* no varargs macros */ 191 190 static void 192 191 g_error (const gchar *format, 193 ...) G_ANALYZER_NORETURN192 ...) 194 193 { 195 194 va_list args; 196 195 va_start (args, format); … … 210 209 } 211 210 static void 212 211 g_critical (const gchar *format, 213 ...) G_ANALYZER_NORETURN212 ...) 214 213 { 215 214 va_list args; 216 215 va_start (args, format);