Commit cdb8efaf cdb8efaff11e2c0c97ccd49d40c6564caf5c9f40 by Sam Roberts

Avoid a few warnings about unused auto-generated lexer functions.

1 parent bf2859f8
......@@ -55,6 +55,8 @@ int addrinput(char *buf, int max_size)
extern char *addrptr; /* current position in address string */
int n; /* number of characters to read from string */
(void) addrunput;
n = strlen(addrptr) < max_size ? strlen(addrptr) : max_size;
if (n > 0) {
memcpy(buf, addrptr, n);
......
......@@ -133,6 +133,9 @@ static char *fixstr(char *str)
{
char *r, *s = (char *) xmalloc(sizeof(char) * strlen(str));
(void) yy_flex_realloc;
(void) yyunput;
r = s;
str++; /* skip open " */
while (*str != '"') {
......