mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
7702d940ec
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 |
||
---|---|---|
.. | ||
atf | ||
clang | ||
csu | ||
flua | ||
geom | ||
googletest | ||
kyua | ||
lib9p | ||
lib80211 | ||
libalias | ||
libarchive | ||
libauditd | ||
libbe | ||
libbearssl | ||
libbegemot | ||
libblacklist | ||
libblocksruntime | ||
libbluetooth | ||
libbsdstat | ||
libbsm | ||
libbsnmp | ||
libbz2 | ||
libc | ||
libc_nonshared | ||
libc++ | ||
libc++experimental | ||
libcalendar | ||
libcam | ||
libcapsicum | ||
libcasper | ||
libclang_rt | ||
libcom_err | ||
libcompat | ||
libcompiler_rt | ||
libcrypt | ||
libcuse | ||
libcxxrt | ||
libdevctl | ||
libdevdctl | ||
libdevinfo | ||
libdevstat | ||
libdl | ||
libdpv | ||
libdwarf | ||
libedit | ||
libefivar | ||
libelf | ||
libelftc | ||
libevent1 | ||
libexecinfo | ||
libexpat | ||
libfetch | ||
libfigpar | ||
libgcc_eh | ||
libgcc_s | ||
libgeom | ||
libgpio | ||
libgssapi | ||
libiconv_modules | ||
libifconfig | ||
libipsec | ||
libipt | ||
libjail | ||
libkiconv | ||
libkvm | ||
libldns | ||
liblua | ||
liblutok | ||
liblzma | ||
libmagic | ||
libmd | ||
libmemstat | ||
libmilter | ||
libmp | ||
libmt | ||
libnetbsd | ||
libnetgraph | ||
libnetmap | ||
libngatm | ||
libnv | ||
libomp | ||
libopenbsd | ||
libopencsd | ||
libopie | ||
libpam | ||
libpathconv | ||
libpcap | ||
libpe | ||
libpjdlog | ||
libpmc | ||
libpmcstat | ||
libproc | ||
libprocstat | ||
libradius | ||
libregex | ||
librpcsec_gss | ||
librpcsvc | ||
librss | ||
librt | ||
librtld_db | ||
libsbuf | ||
libsdp | ||
libsecureboot | ||
libsm | ||
libsmb | ||
libsmdb | ||
libsmutil | ||
libsqlite3 | ||
libssp | ||
libssp_nonshared | ||
libstats | ||
libstdbuf | ||
libstdthreads | ||
libsysdecode | ||
libtacplus | ||
libtelnet | ||
libthr | ||
libthread_db | ||
libucl | ||
libufs | ||
libugidfw | ||
libulog | ||
libunbound | ||
libusb | ||
libusbhid | ||
libutil | ||
libveriexec | ||
libvgl | ||
libvmmapi | ||
libwrap | ||
libxo | ||
liby | ||
libypclnt | ||
libz | ||
libzstd | ||
msun | ||
ncurses | ||
ofed | ||
tests | ||
Makefile | ||
Makefile.inc |