Snippets for bison 3.8.2 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/bison/3.8.2/15.fc44/data/logs/i686/build.log.
-
src/counterexample.c:896:7: warning: variable 'complexity_cost' set but not used [-Wunused-but-set-variable=] 896 | int complexity_cost = prod1 ? PRODUCTION_COST : UNSHIFT_COST; | ^~~~~~~~~~~~~~~ -
src/lalr.c:152:26: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'goto_number' {aka 'unsigned int'} [-Wformat=] 152 | fprintf (stderr, "goto_map[%d (%s)] = %ld .. %ld\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 153 | i, symbols[ntokens + i]->tag, 154 | goto_map[i], goto_map[i+1] - 1); | ~~~~~~~~~~~ | | | goto_number {aka unsigned int} -
src/lalr.c:152:26: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'goto_number' {aka 'unsigned int'} [-Wformat=] 152 | fprintf (stderr, "goto_map[%d (%s)] = %ld .. %ld\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 153 | i, symbols[ntokens + i]->tag, 154 | goto_map[i], goto_map[i+1] - 1); | ~~~~~~~~~~~~~~~~~ | | | goto_number {aka unsigned int} -
src/print.c:422:11: warning: variable 'column' set but not used [-Wunused-but-set-variable=] 422 | int column = 4 + mbswidth (tag, 0); | ^~~~~~ -
src/muscle-tab.c:405:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 405 | char *eq = strchr (assignment, '='); | ^~~~~~ -
src/parse-gram.c:81:25: warning: variable 'gram_nerrs' set but not used [-Wunused-but-set-variable=] 81 | #define yynerrs gram_nerrs | ^~~~~~~~~~ -
lib/careadlinkat.c:178:5: warning: #warning "GCC might issue a bogus -Wreturn-local-addr warning here." [-Wcpp] 178 | #warning "GCC might issue a bogus -Wreturn-local-addr warning here." | ^~~~~~~ -
lib/careadlinkat.c:179:5: warning: #warning "See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644>." [-Wcpp] 179 | #warning "See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644>." | ^~~~~~~ -
lib/careadlinkat.c:182:10: warning: function may return address of local variable [-Wreturn-local-addr] 182 | return readlink_stk (fd, filename, buffer, buffer_size, alloc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 183 | preadlinkat, stack_buf); | ~~~~~~~~~~~~~~~~~~~~~~~ -
lib/canonicalize.c:484:5: warning: #warning "GCC might issue a bogus -Wreturn-local-addr warning here." [-Wcpp] 484 | #warning "GCC might issue a bogus -Wreturn-local-addr warning here." | ^~~~~~~ -
lib/canonicalize.c:485:5: warning: #warning "See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644>." [-Wcpp] 485 | #warning "See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644>." | ^~~~~~~ -
lib/canonicalize.c:401:33: warning: 'end_idx' may be used uninitialized [-Wmaybe-uninitialized] 401 | end = extra_buf + end_idx; | ~~~~~~~~~~^~~~~~~~~ -
lib/diffseq.h:425:36: warning: 'fxbest' may be used uninitialized [-Wmaybe-uninitialized] 425 | part->ymid = fxybest - fxbest; | ~~~~~~~~^~~~~~~~ -
lib/diffseq.h:432:36: warning: 'bxbest' may be used uninitialized [-Wmaybe-uninitialized] 432 | part->ymid = bxybest - bxbest; | ~~~~~~~~^~~~~~~~ -
examples/c++/glr/c++-types.cc:1447:23: warning: array subscript 'const struct glr_stack_item[0]' is partly outside array bounds of 'struct glr_state[1]' [-Warray-bounds=] 1447 | YYASSERT (this->magic_ == MAGIC); | ~~~~~~^~~~~~ -
examples/c++/glr/c++-types.cc:1422:14: warning: array subscript 'const struct glr_stack_item[0]' is partly outside array bounds of 'struct glr_state[1]' [-Warray-bounds=] 1422 | return is_state_; | ^~~~~~~~~