https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112984
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 56865 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56865&action=edit Proposed fix Here is a proposed fix - all libraries can be compiled with -Wpedantic (apart from two which have necessary infinite loops). Perhaps the -Wpedantic needs to be turned off via an attribute in these two modules (one of which is the procedure SYSTEM.Listen which waits for activity in a set of fds).