HardenedBSD/lib
Dimitry Andric 7702d940ec 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
MFC after:	1 week
2021-04-08 18:20:32 +02:00
..
atf Import atf 0.22 snapshot ca73d08c3fc1ecffc1f1c97458c31ab82c12bb01 2021-02-04 15:03:05 +00:00
clang libllvmminimal: Add missing Support/ABIBreak.cpp 2021-01-27 19:19:00 +00:00
csu
flua lib/flua/libjail: Allow empty params table 2021-03-02 18:32:22 -05:00
geom Minor grammar nit 2021-03-03 16:20:29 +00:00
googletest
kyua
lib9p
lib80211 lib80211: Start adding 11ac ETSI bits to regdomain.xml 2021-03-18 11:09:10 +00:00
libalias
libarchive Don't include libarchive fuzz tests by default 2021-01-25 15:09:26 +00:00
libauditd
libbe When be_activate() turns on a new boot environment, it always deactivates 2021-01-08 09:23:16 -08:00
libbearssl
libbegemot
libblacklist
libblocksruntime
libbluetooth
libbsdstat
libbsm
libbsnmp
libbz2
libc Remove the last users of ARM_TP_ADDRESS 2021-04-08 07:52:54 +00:00
libc_nonshared
libc++
libc++experimental
libcalendar
libcam
libcapsicum
libcasper fileargs: fix double caching of the same file 2021-04-07 21:16:37 +02:00
libclang_rt Allow using sanitizers for ssp tests with out-of-tree compiler 2021-03-12 17:15:33 +00:00
libcom_err
libcompat
libcompiler_rt
libcrypt
libcuse
libcxxrt
libdevctl
libdevdctl
libdevinfo
libdevstat
libdl
libdpv Bump shared library versions after ncurses bump in 13. 2021-02-01 17:11:49 -08:00
libdwarf
libedit sh(1): autocomplete commands 2021-03-29 11:14:27 +02:00
libefivar
libelf
libelftc
libevent1
libexecinfo
libexpat
libfetch libfetch: Retry with proxy auth when server returns 407 2021-04-01 18:02:57 -03:00
libfigpar
libgcc_eh
libgcc_s
libgeom Modernize geom_stats_snapshot_get 2021-03-04 07:45:48 -07:00
libgpio
libgssapi Remove __NO_TLS. 2021-02-23 20:08:10 +02:00
libiconv_modules
libifconfig libifconfig: Overhaul ifconfig_media_* interfaces 2021-03-05 04:15:55 -05:00
libipsec Fix some common typos in comments 2021-03-13 18:26:15 +01:00
libipt
libjail
libkiconv
libkvm libkvm: Refine the previous commit (645eaa2cca) 2021-03-03 18:50:45 -05:00
libldns
liblua contrib/lua: update to 5.4.2 2021-01-13 23:56:18 -06:00
liblutok
liblzma Convert libs with pc files to use PCFILES 2021-03-16 07:13:07 +01:00
libmagic Convert libs with pc files to use PCFILES 2021-03-16 07:13:07 +01:00
libmd
libmemstat
libmilter
libmp
libmt
libnetbsd
libnetgraph
libnetmap libnetmap: reset errno in nmreq_register_decode() 2021-04-02 14:31:57 +00:00
libngatm
libnv
libomp
libopenbsd
libopencsd
libopie
libpam pam: add option to not prompt for password if it's set to empty 2021-04-03 13:05:50 +01:00
libpathconv
libpcap
libpe
libpjdlog
libpmc libpmc: fix linking with C programs 2021-02-15 15:54:18 -07:00
libpmcstat
libproc Remove the MK_LIBCPLUSPLUS option 2021-02-01 09:32:07 +00:00
libprocstat Fix makefs bootstrap after d485c77f20 2021-02-22 17:55:45 +00:00
libradius
libregex libregex: re-enable make check 2021-01-08 13:58:35 -06:00
librpcsec_gss
librpcsvc
librss
librt Don't add -Winline for WARNS=6 2021-03-22 11:55:45 +00:00
librtld_db
libsbuf
libsdp
libsecureboot
libsm
libsmb
libsmdb
libsmutil
libsqlite3
libssp
libssp_nonshared
libstats
libstdbuf
libstdthreads
libsysdecode libsysdecode: fix decoding of TCP_NOPUSH and TCP_MD5SIG 2021-02-09 23:42:27 +01:00
libtacplus
libtelnet
libthr Remove the last users of ARM_TP_ADDRESS 2021-04-08 07:52:54 +00:00
libthread_db
libucl
libufs Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
libugidfw
libulog
libunbound
libusb Convert libs with pc files to use PCFILES 2021-03-16 07:13:07 +01:00
libusbhid
libutil
libveriexec
libvgl
libvmmapi bhyve: support relocating fbuf and passthru data BARs 2021-03-19 11:04:36 +08:00
libwrap
libxo
liby
libypclnt
libz Convert libs with pc files to use PCFILES 2021-03-16 07:13:07 +01:00
libzstd
msun Avoid -pedantic warnings about using _Generic in __fp_type_select 2021-04-08 18:20:32 +02:00
ncurses terminfo: add more path to lookup for the database 2021-03-18 10:29:43 +01:00
ofed Fix ibnd_* manpages sources 2021-02-18 15:59:34 +01:00
tests
Makefile Always build the sanitizer runtimes when compiling with clang 2021-02-10 15:25:14 +00:00
Makefile.inc