Changeset 1842
- Timestamp:
- 04/25/07 21:34:11 (21 months ago)
- Location:
- trunk
- Files:
-
- 7 modified
-
configure.in (modified) (2 diffs)
-
src/tcpbridge.c (modified) (1 diff)
-
src/tcpedit/plugins/dlt_en10mb/en10mb.c (modified) (1 diff)
-
src/tcpedit/plugins/dlt_hdlc/hdlc.c (modified) (2 diffs)
-
src/tcpedit/plugins/dlt_linuxsll/linuxsll.c (modified) (2 diffs)
-
src/tcpedit/plugins/dlt_loop/loop.c (modified) (1 diff)
-
src/tcprewrite.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.in
r1839 r1842 221 221 fi 222 222 ]) 223 224 225 # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well, 226 # so we can use _U_ to flag unused function arguments and not get warnings 227 # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused 228 # function argument will compile with non-GCC compilers. 229 # 230 if test "x$GCC" = "xyes" ; then 231 CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS" 232 else 233 CFLAGS="-D_U_=\"\" $CFLAGS" 234 fi 223 235 224 236 … … 1068 1080 LIBOPTS_CHECK 1069 1081 1082 1070 1083 AC_OUTPUT([Makefile 1071 1084 doxygen.cfg -
trunk/src/tcpbridge.c
r1839 r1842 155 155 156 156 void 157 post_args(_ _attribute__((unused)) int argc, __attribute__((unused))char *argv[])157 post_args(_U_ int argc, _U_ char *argv[]) 158 158 { 159 159 char ebuf[SENDPACKET_ERRBUF_SIZE]; -
trunk/src/tcpedit/plugins/dlt_en10mb/en10mb.c
r1841 r1842 43 43 #include "../ethernet.h" 44 44 45 static char _ _attribute__((unused))dlt_name[] = "en10mb";45 static char _U_ dlt_name[] = "en10mb"; 46 46 static char dlt_prefix[] = "enet"; 47 47 static u_int16_t dlt_value = DLT_EN10MB; -
trunk/src/tcpedit/plugins/dlt_hdlc/hdlc.c
r1841 r1842 42 42 43 43 static char dlt_name[] = "hdlc"; 44 static char _ _attribute__((unused))dlt_prefix[] = "hdlc";44 static char _U_ dlt_prefix[] = "hdlc"; 45 45 static u_int16_t dlt_value = DLT_C_HDLC; 46 46 … … 222 222 */ 223 223 int 224 dlt_hdlc_encode(tcpeditdlt_t *ctx, u_char **packet_ex, int pktlen, _ _attribute__((unused))tcpr_dir_t dir)224 dlt_hdlc_encode(tcpeditdlt_t *ctx, u_char **packet_ex, int pktlen, _U_ tcpr_dir_t dir) 225 225 { 226 226 cisco_hdlc_t *hdlc; -
trunk/src/tcpedit/plugins/dlt_linuxsll/linuxsll.c
r1841 r1842 42 42 43 43 static char dlt_name[] = "linuxsll"; 44 static char _ _attribute__((unused))dlt_prefix[] = "linuxsll";44 static char _U_ dlt_prefix[] = "linuxsll"; 45 45 static u_int16_t dlt_value = DLT_LINUX_SLL; 46 46 … … 211 211 */ 212 212 int 213 dlt_linuxsll_encode(tcpeditdlt_t *ctx, u_char **packet_ex, int pktlen, _ _attribute__((unused))tcpr_dir_t dir)213 dlt_linuxsll_encode(tcpeditdlt_t *ctx, u_char **packet_ex, int pktlen, _U_ tcpr_dir_t dir) 214 214 { 215 215 u_char *packet; -
trunk/src/tcpedit/plugins/dlt_loop/loop.c
r1841 r1842 50 50 51 51 static char dlt_name[] = "loop"; 52 static char _ _attribute__((unused))dlt_prefix[] = "loop";52 static char _U_ dlt_prefix[] = "loop"; 53 53 static u_int16_t dlt_value = DLT_LOOP; 54 54 -
trunk/src/tcprewrite.c
r1836 r1842 160 160 161 161 void 162 post_args(_ _attribute__((unused)) int argc, __attribute__((unused))char *argv[])162 post_args(_U_ int argc, _U_ char *argv[]) 163 163 { 164 164 char ebuf[PCAP_ERRBUF_SIZE];
