[patch] : warnings with gcc 3.2.2
David Kimdon <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
The included patch removes of a bunch of warning with gcc 3.2.2. The warnings
look a bit like this:
ebtables.c:248: warning: concatenation of string literals with __FUNCTION__ is deprecated
ebtables.c: In function `add_watcher':
ebtables.c:264: warning: concatenation of string literals with __FUNCTION__ is deprecated
ebtables.c: In function `merge_options':
. . .
-David
diff -ur ebtables-v2.0.2.orig/include/ebtables_u.h ebtables-v2.0.2/include/ebtables_u.h
--- ebtables-v2.0.2.orig/include/ebtables_u.h 2002-11-20 13:05:39.000000000 -0800
+++ ebtables-v2.0.2/include/ebtables_u.h 2003-01-17 19:17:34.000000000 -0800
@@ -204,8 +204,8 @@
#define print_bug(format, args...) \
__print_bug(__FILE__, __LINE__, format, ##args)
#define print_error(format,args...) {printf(format".\n",##args); exit(-1);}
-#define print_memory() {printf("Ebtables: " __FILE__ " " __FUNCTION__ \
- " %d :Out of memory.\n", __LINE__); exit(-1);}
+#define print_memory() {printf("Ebtables: " __FILE__ \
+ " %s %d :Out of memory.\n", __FUNCTION__, __LINE__); exit(-1);}
// used for keeping the rule counters right during rule adds or deletes
#define CNT_NORM 0
-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your
clients even if they use browsers that are limited to 40 bit encryption.
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en