From 907d49483d24698013fcdaec15b78a149751eecb Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Mon, 25 Jul 2016 22:58:09 -0400 Subject: Fix some of the checkAPIs.pl warnings for g_warning. 1. Create ws_g_warning for legitimate uses of g_warning 2. Use proto_tree_add_debug_text 3. Comment some out Change-Id: Ida044bf40286b955fdd529c4f9907c8e09b3d7c5 Reviewed-on: https://code.wireshark.org/review/16678 Reviewed-by: Michael Mann Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- wsutil/ws_printf.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wsutil') diff --git a/wsutil/ws_printf.h b/wsutil/ws_printf.h index d996d01c5e..3e0468e53b 100644 --- a/wsutil/ws_printf.h +++ b/wsutil/ws_printf.h @@ -101,6 +101,11 @@ debugging context has a protocol tree. */ #define ws_debug_printf printf +/* This is intended to fool checkAPIs.pl for few places that have legitimate +use for g_warning. This should be used sparingly. +*/ +#define ws_g_warning g_warning + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.1