Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153244073
D45447.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
479 B
Referenced Files
None
Subscribers
None
D45447.diff
View Options
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -88,7 +88,7 @@
#define ns(s) strdup(s)
int include(const char *, int);
-void yyerror(const char *s);
+int yyerror(const char *s);
int yywrap(void);
static void newdev(char *name);
@@ -299,11 +299,13 @@
%%
-void
+int
yyerror(const char *s)
{
errx(1, "%s:%d: %s", yyfile, yyline + 1, s);
+ __unreachable();
+ return (0);
}
int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 12:52 AM (8 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31875942
Default Alt Text
D45447.diff (479 B)
Attached To
Mode
D45447: Use correct function declaration for yyerror
Attached
Detach File
Event Timeline
Log In to Comment