X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2e768e3cc0ce768373d3320eca4cdd08b8cf646a..39a9d9d85d0f2289d8c1257251311b7cf959c700:/sbr/dtimep.l diff --git a/sbr/dtimep.l b/sbr/dtimep.l index bae6ac5c..05a6d90b 100644 --- a/sbr/dtimep.l +++ b/sbr/dtimep.l @@ -14,6 +14,12 @@ /* Since we're looking at a string at a time, don't worry about * wrapping to the next buffer. */ +#if YY_FLEX_MAJOR_VERSION == 2 && \ + YY_FLEX_MINOR_VERSION == 6 && \ + YY_FLEX_SUBMINOR_VERSION == 3 +/* https://github.com/westes/flex/issues/162 */ +#undef yywrap +#endif #define yywrap() 1 #define YY_SKIP_YYWRAP @@ -168,7 +174,7 @@ static int day_map[] = { static void zonehack (struct tws *tw) { - register struct tm *tm; + struct tm *tm; if (dmktime (tw) == (time_t) -1) return;