LEX src/liboconfig/scanner.c
CC src/liboconfig/liboconfig_la-scanner.lo
src/liboconfig/scanner.l:113:12: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int len = strlen (yytext);
~~~ ^~~~~~~~~~~~~~~
src/liboconfig/scanner.l:129:12: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int len = strlen (yytext);
~~~ ^~~~~~~~~~~~~~~
{UNQUOTED_STRING} {yylval.string = yytext; return (UNQUOTED_STRING);}
\"{QUOTED_STRING}\\{EOL} {
- int len = strlen (yytext);
+ size_t len = strlen (yytext);
ml_pos = 0;
}
<ML>^{WHITE_SPACE}+ {/* remove leading white-space */}
<ML>{NON_WHITE_SPACE}{QUOTED_STRING}\\{EOL} {
- int len = strlen (yytext);
+ size_t len = strlen (yytext);
/* remove "\\<EOL>" */
if ('\r' == yytext[len - 2])
%%
static void ml_append (char *string)
{
- int len = strlen (string);
+ size_t len = strlen (string);
int s;
if (ml_free <= len) {