maint: suppress bogus noreturn warnings
commit59da65b7fed99d024af1f801cc4a53ca1ca8ee06
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Feb 2022 06:08:56 +0000 (31 22:08 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Feb 2022 06:09:37 +0000 (31 22:09 -0800)
tree0fbe781d65293abe8386cf51e39660161adb2d55
parent1b552e73e8a823d792c1f14e09ee613e4a1adca4
maint: suppress bogus noreturn warnings

* configure.ac: Move the single-binary code before the
gcc-warnings code, so that the latter can depend on the former.
Suppress -Wsuggest-attribute=noreturn with single binaries,
to avoid diagnostics like the following:
  src/expr.c: In function 'single_binary_main_expr':
  error: function might be candidate for attribute 'noreturn'
Problem reported by Pádraig Brady in:
https://lists.gnu.org/r/coreutils/2022-01/msg00061.html
configure.ac