From 8ed7a73e22c049a2e013bb436e599bff41fc5b9b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 26 Dec 2012 05:57:06 +0000 Subject: Fix a bunch of warnings. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748 --- ui/gtk/follow_stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/gtk/follow_stream.h') diff --git a/ui/gtk/follow_stream.h b/ui/gtk/follow_stream.h index 1d4fef6362..f41ea2405a 100644 --- a/ui/gtk/follow_stream.h +++ b/ui/gtk/follow_stream.h @@ -94,7 +94,7 @@ extern GList *follow_infos; void follow_load_text(follow_info_t *follow_info); void follow_filter_out_stream(GtkWidget * w, gpointer parent_w); -void follow_stream(gchar *title, follow_info_t *follow_info, +void follow_stream(const gchar *title, follow_info_t *follow_info, gchar *both_directions_string, gchar *server_to_client_string, gchar *client_to_server_string); -- cgit v1.2.3