[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH] Prevent gcc error on isys/eddsupport.c



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]