[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] Prevent gcc error on isys/eddsupport.c
- From: Bill Nottingham <notting redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH] Prevent gcc error on isys/eddsupport.c
- Date: Mon, 30 Mar 2009 20:22:39 -0400
David Cantrell (dcantrell redhat com) said:
> Getting this on eddsupport.c with latest gcc:
> eddsupport.c:171: error: offset ‘3’ outside bounds of constant string
>
> gcc does not like the "." and ".." in strncmp() calls. Do the same
> thing but without calling strncmp() and without declaring temporary
> variables.
Adding parentheses around strncmp (to explicitly call the function instead
of whatever optimized macro it's using) may be a shorter fix. In any
case, I filed https://bugzilla.redhat.com/show_bug.cgi?id=492973 as it's
certainly not invalid code.
Bill
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]