bin/167481: [PATCH] make usr.bin/mkesdb and usr.bin/mkcsmapper
build with clang using -Werror
Niclas Zeising
zeising at daemonic.se
Tue May 1 11:00:27 UTC 2012
>Number: 167481
>Category: bin
>Synopsis: [PATCH] make usr.bin/mkesdb and usr.bin/mkcsmapper build with clang using -Werror
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue May 01 11:00:24 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Niclas Zeising
>Release: FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD vincent.daemonic.se 9.0-RELEASE FreeBSD 9.0-RELEASE #0 r232364: Fri Mar 2 01:14:23 CET 2012 root at vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64
>Description:
usr.bin/mkesdb and usr.bin/mkcsmapper does not build with clang when -Werror is used.
>How-To-Repeat:
>Fix:
Attached patch makes them build with clang -Werror.
--- head.usr.bin.buildfix.diff begins here ---
Index: head/usr.bin/mkesdb/lex.l
===================================================================
--- head/usr.bin/mkesdb/lex.l (revision 234868)
+++ head/usr.bin/mkesdb/lex.l (working copy)
@@ -45,6 +45,7 @@
int line_number = 1;
%}
+%option noinput
%option nounput
%x COMMENT
@@ -59,7 +60,7 @@
<COMMENT>[\n] { line_number++; }
<COMMENT>. { }
<COMMENT><<EOF>> {
- yyerror("unexpected file end (unterminate comment)\n");
+ yyerror("unexpected end of file (unterminated comment)\n");
exit(1);
}
Index: head/usr.bin/mkcsmapper/lex.l
===================================================================
--- head/usr.bin/mkcsmapper/lex.l (revision 234868)
+++ head/usr.bin/mkcsmapper/lex.l (working copy)
@@ -43,6 +43,7 @@
int line_number = 1;
%}
+%option noinput
%option nounput
%x COMMENT
@@ -57,7 +58,7 @@
<COMMENT>[\n] { line_number++; }
<COMMENT>. { }
<COMMENT><<EOF>> {
- yyerror("unexpected file end (unterminate comment)\n");
+ yyerror("unexpected end of file (unterminated comment)\n");
exit(1);
}
--- head.usr.bin.buildfix.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list