freebsd-ports/devel/elfutils/files/patch-src_ldlex.l
Conrad Meyer c7a62b1397 elfutils-0.163_6
- Drop GCC requirement to 4.8
- Remove -Werror for i386, for now anyway
- Require FreeBSD 10.0 or higher for strchrnul()
- Fix a few warnings noticed by gcc with optimization on

Sponsored by:	EMC / Isilon Storage Division
2016-07-17 20:59:00 +00:00

11 lines
324 B
Text

--- src/ldlex.l.orig 2014-02-05 00:21:44 UTC
+++ src/ldlex.l
@@ -148,7 +148,7 @@ VERSION { return kVERSION; }
"["([RWX]){0,3}"]" { int cnt = 1 ;
ldlval.num = 0;
- while (cnt < yyleng - 1)
+ while (cnt < (int)yyleng - 1)
ldlval.num |= attrib_convert (yytext[cnt++]);
return kMODE; }