apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: cvs commit: apr/network_io/unix sa_common.c
Date Fri, 11 Oct 2002 23:24:51 GMT
rbb@apache.org writes:

> rbb         2002/10/11 14:49:03
> 
>   Modified:    network_io/unix sa_common.c
>   Log:
>   WE can declare a variable after executing some code.

It seems that we can sometimes get away with it if we're using this
gcc:

  $ gcc --version
  gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
  Copyright (C) 2002 Free Software Foundation, Inc.

Sorry for the trouble, and of course I'm embarrassed at the stupid
error, but I find it intriguing.

gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT
-DAPR_POOL_DEBUG=1 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -I../../include -I../../include/arch/unix
-I../../include/arch/unix -c sockaddr.c -o sockaddr.o >/dev/null

no errors or warnings!!!

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

Mime
View raw message