> Date: Thu, 31 Dec 2015 13:18:13 +0100 > From: Jan Stary <h...@stare.cz> > > ===> usr.sbin/eeprom > cc -O2 -pipe -Werror-implicit-function-declaration -c getdate.c > /usr/src/usr.sbin/eeprom/getdate.y: In function 'get_date': > /usr/src/usr.sbin/eeprom/getdate.y:860: error: implicit declaration of > function 'yyparse'
Fallout from -Werror-implicit-function-declaration. Diff below fixes it. ok? Index: getdate.y =================================================================== RCS file: /cvs/src/usr.sbin/eeprom/getdate.y,v retrieving revision 1.9 diff -u -p -r1.9 getdate.y --- getdate.y 3 Dec 2013 01:48:37 -0000 1.9 +++ getdate.y 31 Dec 2015 18:50:42 -0000 @@ -21,6 +21,8 @@ #include <string.h> #include <time.h> +static int yyparse(void); + #define EPOCH 1970 #define HOUR(x) ((time_t)(x) * 60) #define SECSPERDAY (24L * 60L * 60L)