I'm migrating a box from 8-STABLE to -CURRENT this morning and this commit 
seems to break buildkernel:

cc -O2 -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm 
-std=gnu99  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W 
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 
-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter 
-Wcast-align -Wno-pointer-sign -c aicasm_scan.c
cc1: warnings being treated as errors
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_scan.l:840: warning: function 
declaration isn't a prototype
*** Error code 1

I don't have any custom CFLAGS, etc defined. Commenting out the new #defines 
from this patch allows the build to continue.

I'm guessing this doesn't happen on machines already running -CURRENT or 
tinderbox (and others) would have noticed. However if this is (going to be) a 
supported upgrade path from 8.x to 9.0 perhaps there's a way to make both clang 
and gcc from 8.x happy?

JN

On Oct 13, 2010, at 6:33 AM, Rui Paulo wrote:

> Author: rpaulo
> Date: Wed Oct 13 10:33:01 2010
> New Revision: 213765
> URL: http://svn.freebsd.org/changeset/base/213765
> 
> Log:
>  Define YY_NO_INPUT. This makes aicasm buildable by clang with Werror
>  turned on.
> 
> Modified:
>  head/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l
>  head/sys/dev/aic7xxx/aicasm/aicasm_scan.l
> 
> Modified: head/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l
> ==============================================================================
> --- head/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l   Wed Oct 13 10:31:32 
> 2010        (r213764)
> +++ head/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l   Wed Oct 13 10:33:01 
> 2010        (r213765)
> @@ -61,6 +61,7 @@
> #include "aicasm_symbol.h"
> #include "aicasm_macro_gram.h"
> 
> +#define YY_NO_INPUT
> #define MAX_STR_CONST 4096
> static char string_buf[MAX_STR_CONST];
> static char *string_buf_ptr;
> 
> Modified: head/sys/dev/aic7xxx/aicasm/aicasm_scan.l
> ==============================================================================
> --- head/sys/dev/aic7xxx/aicasm/aicasm_scan.l Wed Oct 13 10:31:32 2010        
> (r213764)
> +++ head/sys/dev/aic7xxx/aicasm/aicasm_scan.l Wed Oct 13 10:33:01 2010        
> (r213765)
> @@ -61,6 +61,7 @@
> #include "aicasm_symbol.h"
> #include "aicasm_gram.h"
> 
> +#define YY_NO_INPUT
> /* This is used for macro body capture too, so err on the large size. */
> #define MAX_STR_CONST 4096
> static char string_buf[MAX_STR_CONST];
> _______________________________________________
> svn-src-head@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
> 

_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to