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) ...@@ -55,6 +55,8 @@ int addrinput(char *buf, int max_size)
55 extern char *addrptr; /* current position in address string */ 55 extern char *addrptr; /* current position in address string */
56 int n; /* number of characters to read from string */ 56 int n; /* number of characters to read from string */
57 57
58 (void) addrunput;
59
58 n = strlen(addrptr) < max_size ? strlen(addrptr) : max_size; 60 n = strlen(addrptr) < max_size ? strlen(addrptr) : max_size;
59 if (n > 0) { 61 if (n > 0) {
60 memcpy(buf, addrptr, n); 62 memcpy(buf, addrptr, n);
......
...@@ -133,6 +133,9 @@ static char *fixstr(char *str) ...@@ -133,6 +133,9 @@ static char *fixstr(char *str)
133 { 133 {
134 char *r, *s = (char *) xmalloc(sizeof(char) * strlen(str)); 134 char *r, *s = (char *) xmalloc(sizeof(char) * strlen(str));
135 135
136 (void) yy_flex_realloc;
137 (void) yyunput;
138
136 r = s; 139 r = s;
137 str++; /* skip open " */ 140 str++; /* skip open " */
138 while (*str != '"') { 141 while (*str != '"') {
......