ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Compilation failure in gtk/stats_tree_stat.c

From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Mon, 2 Dec 2013 14:52:06 +0100
checkAPI script are no happy...
Error: Found prohibited APIs in stats_tree_stat.c: fopen
Error: Found prohibited APIs in stats_tree_stat.c: fopen




On Mon, Dec 2, 2013 at 11:55 AM, Joerg Mayer <jmayer@xxxxxxxxx> wrote:
[ 83%] Building C object ui/gtk/CMakeFiles/gtkui.dir/stats_tree_stat.c.o
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/stats_tree_stat.c: In function ‘save_as_dialog’:
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/stats_tree_stat.c:296:3: error: enum conversion when passing argument 2 of ‘stats_tree_format_as_str’ is invalid in C++ [-Werror=c++-compat]
   str_tree=stats_tree_format_as_str(st,file_type,sort_column-N_RESERVED_COL,order==GTK_SORT_DESCENDING);
   ^
In file included from /home/jmayer/work/wireshark/svn/trunk/ui/gtk/stats_tree_stat.c:41:0:
/home/jmayer/work/wireshark/svn/trunk/epan/stats_tree_priv.h:283:24: note: expected ‘st_format_type’ but argument is of type ‘int’
 WS_DLL_PUBLIC GString* stats_tree_format_as_str(const stats_tree* st,
                        ^
cc1: all warnings being treated as errors
make[2]: *** [ui/gtk/CMakeFiles/gtkui.dir/stats_tree_stat.c.o] Error 1

--
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe