freebsd-src/lib
Dimitry Andric 74b123c0a5 Avoid -pedantic warnings about using _Generic in __fp_type_select
When compiling parts of math.h with clang using a C standard before C11,
and using -pedantic, it will result in warnings similar to:

bug254714.c:5:11: warning: '_Generic' is a C11 extension [-Wc11-extensions]
  return !isfinite(1.0);
          ^
/usr/include/math.h:111:21: note: expanded from macro 'isfinite'
                    ^
/usr/include/math.h:82:39: note: expanded from macro '__fp_type_select'
                                      ^

This is because the block that enables use of _Generic is conditional
not only on C11, but also on whether the compiler advertises support for
C generic selections via __has_extension(c_generic_selections).

To work around the warning without having to pessimize the code, use the
__extension__ keyword, which is supported by both clang and gcc. While
here, remove the check for __clang__, as _Generic has been supported for
a long time by gcc too now.

Reported by:	yuri
PR:		254714
2021-04-15 12:26:48 +02:00
..
atf MFC r289172,r290254: 2017-02-09 22:49:48 +00:00
clang Update stable/10 from 10.3-STABLE to 10.4-PRERELEASE as part of 2017-07-31 22:19:39 +00:00
csu Unbreak lib/csu for i386 and amd64 (MK_LIB32 == yes) after r313582 2017-02-11 20:46:49 +00:00
libalias MFC r312454: 2017-02-11 05:45:00 +00:00
libarchive MFC r368207,368607: 2020-12-16 22:25:40 +00:00
libauditd MFC r312457: 2017-02-11 05:53:13 +00:00
libbegemot MFC r312458: 2017-02-11 05:55:25 +00:00
libblocksruntime MFC r312459: 2017-02-11 05:56:48 +00:00
libbluetooth MFC r312460: 2017-02-11 05:57:35 +00:00
libbsm MFC r312461: 2017-02-11 05:58:20 +00:00
libbsnmp MFC r312462: 2017-02-11 05:59:39 +00:00
libbz2 MFC r312463: 2017-02-11 06:19:25 +00:00
libc MFC r354255: 2019-11-10 17:33:10 +00:00
libc_nonshared MFC r312466: 2017-02-11 06:23:07 +00:00
libc++ MFC r312464: 2017-02-11 06:21:38 +00:00
libcalendar
libcam MFC r319844,r319845: 2017-07-18 08:44:38 +00:00
libcom_err MFC r312501: 2017-02-11 06:58:24 +00:00
libcompat MFC r312502: 2017-02-11 06:59:03 +00:00
libcompiler_rt MFC r323001: 2017-09-05 17:32:14 +00:00
libcrypt MFC r321915: 2017-08-05 17:02:53 +00:00
libcxxrt Synchronize libcxxrt in stable/10 with stable/11. 2017-03-25 21:46:02 +00:00
libdevctl MFC 305034: Implement 'devctl clear driver' to undo a previous 'set driver'. 2016-09-30 22:05:47 +00:00
libdevinfo sys/rman.h now requires sys/types.h. Include it to make the API match 2011-02-10 04:53:09 +00:00
libdevstat MFC r279346: 2015-03-02 21:00:54 +00:00
libdpv dpv(3): MFC r330943, r335264 2018-06-20 05:50:54 +00:00
libdwarf When decoding SLEB128, make sure sign extension is performed for 2013-06-30 21:06:47 +00:00
libedit MFC: r265863 2015-02-08 22:11:24 +00:00
libefi
libelf MFC r296685: libelf: correct byte count in cross-endian note translation 2016-04-11 14:45:36 +00:00
libexecinfo MFC r312507: 2017-02-11 07:03:10 +00:00
libexpat MFC r312508: 2017-02-11 07:03:54 +00:00
libfetch MFC r357212: libfetch: fix urldecode buffer overrun 2020-02-05 18:26:50 +00:00
libfigpar MFC r290275: Make figpar(3) types/macros [more] unique (s/fp_/figpar_/gi) 2016-01-09 23:33:44 +00:00
libgeom MFC r317311,r317312,r319019: 2017-05-31 08:40:46 +00:00
libgpib mdoc: minor Bl improvements. 2012-06-02 08:47:26 +00:00
libgssapi MFC r312505: 2017-02-11 07:01:17 +00:00
libiconv MFC r260334: 2014-01-09 23:08:56 +00:00
libiconv_modules MFC r336115; 2018-07-16 00:28:33 +00:00
libipsec MFC: r264585 2014-04-24 10:23:35 +00:00
libipx
libjail Load filesystem modules associated with allow.mount permissions. 2018-08-15 22:32:55 +00:00
libkiconv MFC r312500: 2017-02-11 06:57:22 +00:00
libkse Fix typo in ".PATH" 2012-04-18 07:02:53 +00:00
libkvm MFC r362623: 2020-06-30 15:53:52 +00:00
libldns MFC r312499: 2017-02-11 06:56:38 +00:00
liblzma MFC r312498: 2017-02-11 06:55:35 +00:00
libmagic MFC r323683: 2018-02-05 08:50:34 +00:00
libmandoc Merge mandoc from vendor into contrib and provide the necessary Makefile glue. 2012-10-19 22:21:01 +00:00
libmd MFC r314709,r314790,r314794: 2017-03-22 18:35:48 +00:00
libmemstat Refine UMA bucket allocation to reduce space consumption and improve 2013-06-18 04:50:20 +00:00
libmilter MFC r312495: 2017-02-11 06:51:53 +00:00
libmp MFC r315032-r315036, r315039, r315041 2017-05-30 21:03:44 +00:00
libmt MFC r325371 2017-11-06 20:08:02 +00:00
libnandfs Import work done under project/nand (@235533) into head. 2012-05-17 10:11:18 +00:00
libnetbsd Note: this change reintroduces r314020 after r314327, r314330, and r314332 2017-02-28 00:56:33 +00:00
libnetgraph MFC r325552: s/NgSendMsgReply/NgSendReplyMsg/ in man to match the code. 2017-11-22 21:24:47 +00:00
libngatm MFC r312493: 2017-02-11 06:50:25 +00:00
libnv MFC r319156,r319159: 2017-06-01 06:16:57 +00:00
libopie MFC r312491: 2017-02-11 06:47:56 +00:00
libpam MFC r347234: 2019-05-10 01:02:07 +00:00
libpcap MFC r312490: 2017-02-11 06:47:07 +00:00
libpmc MFC r316601: 2017-07-19 18:23:49 +00:00
libproc MFC r278658: 2015-02-20 20:02:47 +00:00
libprocstat MFC r312489: 2017-02-11 06:46:16 +00:00
libradius MFH (r300602): the NAS identifier is a string, not an integer 2017-03-12 13:36:14 +00:00
librpcsec_gss MFC r312486: 2017-02-11 06:44:16 +00:00
librpcsvc MFC r312485: 2017-02-11 06:42:56 +00:00
librt MFC r289172,r290254: 2017-02-09 22:49:48 +00:00
librtld_db MFC r265629, r265630 2014-08-08 14:53:01 +00:00
libsbuf MFC r316558: 2017-07-18 08:30:58 +00:00
libsdp MFC r343572: 2019-02-08 10:28:13 +00:00
libsm MFC r312482: 2017-02-11 06:40:27 +00:00
libsmb MFC r312480: 2017-02-11 06:39:04 +00:00
libsmdb MFC r312481: 2017-02-11 06:39:47 +00:00
libsmutil MFC r312479: 2017-02-11 06:38:22 +00:00
libstand MFC r320468: 2017-07-17 06:46:57 +00:00
libstdbuf Remove WARNS=6 lines. 2012-10-18 15:39:29 +00:00
libstdthreads MFC r312477: 2017-02-11 06:37:24 +00:00
libtacplus mdoc sweep. 2013-05-12 22:22:12 +00:00
libtelnet MFC r321806: 2017-08-31 00:56:10 +00:00
libthr MFC 331324: Ensure thread library is initialized in pthread_testcancel(). 2018-04-16 20:45:21 +00:00
libthread_db MFC r312468: 2017-02-11 06:27:42 +00:00
libucl MFC: r263648, r264789, r266636 2014-07-19 23:44:57 +00:00
libufs MFC r312472: 2017-02-11 06:32:48 +00:00
libugidfw MFC r335921: 2018-07-06 19:10:07 +00:00
libulog MFC r312471: 2017-02-11 06:32:05 +00:00
libunbound MFC r312473: 2017-02-11 06:33:46 +00:00
libusb MFC r361977: libusb: improve compatibility 2020-06-16 12:21:55 +00:00
libusbhid MFC r361827: 2020-06-08 09:34:16 +00:00
libutil MFC r334547: 2018-08-03 14:25:15 +00:00
libvgl Fix various typos in manual pages. 2012-02-25 14:31:25 +00:00
libvmmapi Merge r309640 from head: 2016-12-06 18:55:01 +00:00
libwrap MFC r312392: 2017-02-08 08:35:05 +00:00
liby
libyaml MFC r256450: 2013-10-23 18:07:07 +00:00
libypclnt MFC r312469: 2017-02-11 06:30:25 +00:00
libz MFC r316649: 2017-05-31 06:08:11 +00:00
msun Avoid -pedantic warnings about using _Generic in __fp_type_select 2021-04-15 12:26:48 +02:00
ncurses MFC r312467: 2017-02-11 06:25:47 +00:00
tests MFC r289172,r290254: 2017-02-09 22:49:48 +00:00
Makefile MFC: r306375 2017-08-05 12:33:00 +00:00
Makefile.inc