https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92666
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|bogus |[10 Regression] bogus |-Wunused-but-set-variable |-Wunused-but-set-variable |in gcov.c with |in gcov.c with |-Wno-restrict |-Wno-restrict --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- I thought the problem was introduced with -Wrestrict but it looks like the false positive is actually a regression caused by r276059: r276059 | jason | 2019-09-23 13:48:00 -0400 (Mon, 23 Sep 2019) | 10 lines PR c++/91809 - bit-field and ellipsis. decay_conversion converts a bit-field access to its declared type, which isn't what we want here; it even has a comment that the caller is expected to have already used default_conversion to perform integral promotion. This function handles arithmetic promotion differently, but we still don't want to call decay_conversion before that happens. * call.c (convert_arg_to_ellipsis): Don't call decay_conversion for arithmetic arguments.