Snippets for flex 2.6.4 from Fedora x86_64
Sourced from https://kojipkgs.fedoraproject.org/packages/flex/2.6.4/24.fc44/data/logs/x86_64/build.log.
-
filter.c:393:68: warning: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size between 494 and 503 [-Wformat-truncation=] 393 | snprintf (buf, readsz, "#line %d \"%s\"\n", | ^~ 394 | lineno, filename); | ~~~~~~~~ -
misc.c:515:67: warning: pointer targets in passing argument 1 of ‘strtoul’ differ in signedness [-Wpointer-sign] 515 | esc_char = (unsigned char) strtoul (array + 1, NULL, 8); | ~~~~~~^~~ | | | unsigned char * -
misc.c:537:67: warning: pointer targets in passing argument 1 of ‘strtoul’ differ in signedness [-Wpointer-sign] 537 | esc_char = (unsigned char) strtoul (array + 2, NULL, 16); | ~~~~~~^~~ | | | unsigned char * -
misc.c:369:57: warning: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 2039 [-Wformat-truncation=] 369 | snprintf (directive, sizeof(directive), line_fmt, 0, filename); | ^~~~~~~~ ~~~~~~~~ -
misc.c:367:57: warning: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size between 2029 and 2039 [-Wformat-truncation=] 367 | snprintf (directive, sizeof(directive), line_fmt, linenum, filename); | ^~~~~~~~ ~~~~~~~~ -
main.c:494:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 494 | if (gen_line_dirs) | ^~ -
filter.c:393:68: warning: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size between 494 and 503 [-Wformat-truncation=] 393 | snprintf (buf, readsz, "#line %d \"%s\"\n", | ^~ 394 | lineno, filename); | ~~~~~~~~ -
misc.c:515:67: warning: pointer targets in passing argument 1 of ‘strtoul’ differ in signedness [-Wpointer-sign] 515 | esc_char = (unsigned char) strtoul (array + 1, NULL, 8); | ~~~~~~^~~ | | | unsigned char * -
misc.c:537:67: warning: pointer targets in passing argument 1 of ‘strtoul’ differ in signedness [-Wpointer-sign] 537 | esc_char = (unsigned char) strtoul (array + 2, NULL, 16); | ~~~~~~^~~ | | | unsigned char * -
misc.c:369:57: warning: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 2039 [-Wformat-truncation=] 369 | snprintf (directive, sizeof(directive), line_fmt, 0, filename); | ^~~~~~~~ ~~~~~~~~ -
misc.c:367:57: warning: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size between 2029 and 2039 [-Wformat-truncation=] 367 | snprintf (directive, sizeof(directive), line_fmt, linenum, filename); | ^~~~~~~~ ~~~~~~~~ -
main.c:494:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 494 | if (gen_line_dirs) | ^~ -
quote_in_comment.c:1111:16: warning: ‘input’ defined but not used [-Wunused-function] 1111 | #else | ^ -
quote_in_comment.c:1068:17: warning: ‘yyunput’ defined but not used [-Wunused-function] 1068 | | ^