diff options
author | Michael Mann <mmann78@netscape.net> | 2016-07-25 22:58:09 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-07-26 04:08:50 +0000 |
commit | 907d49483d24698013fcdaec15b78a149751eecb (patch) | |
tree | 001c978c947dd64932fd2d9749cfc46756ac30dc /wsutil | |
parent | 6fbaf9be34e8745b2781294afdcf2822528a6349 (diff) | |
download | wireshark-907d49483d24698013fcdaec15b78a149751eecb.tar.gz |
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 <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/ws_printf.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |