]> The Tcpdump Group git mirrors - tcpdump/commit
Squelch a noreturn warning on AIX. [skip ci]
authorDenis Ovsienko <[email protected]>
Mon, 26 Jul 2021 11:01:00 +0000 (12:01 +0100)
committerDenis Ovsienko <[email protected]>
Mon, 26 Jul 2021 11:01:00 +0000 (12:01 +0100)
commitb7401ffd865af51060604b7eb76ff593397293d6
treed39572d61b628aa0fd84527951d6370c03b424d0
parentcdc3bc2359dc214dfedf5fc5dec4712058af7d33
Squelch a noreturn warning on AIX. [skip ci]

GCC 8.3.0 on AIX 7.1 produced a warning for every file that has a call
to nd_trunc_longjmp():

In file included from ./cpack.c:39:
./extract.h: In function 'nd_trunc_longjmp':
./extract.h:586:1: warning: 'noreturn' function does return

As far as longjmp(3) man page and <setjmp.h> header go, longjmp() is as
noreturn in AIX as everywhere else, but not in a way that GCC can tell.

Disabling -Wsuggest-attribute=noreturn and -Wmissing-noreturn had no
apparent effect, so instead of using diag-control.h add an infinite loop
on AIX to squelch the warning.
extract.h