Date: Fri, 02 Apr 2021 09:21:45 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254714] include <math.h> contains a c11 extension Message-ID: <bug-254714-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254714 Bug ID: 254714 Summary: include <math.h> contains a c11 extension Product: Base System Version: 12.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org This code: > #include <math.h> >=20 > int main() { return !isfinite(1.0); } triggers this warning: > $ cc -Wall -Wextra -pedantic -std=3Dgnu99 -c x.c=20 > x.c:4:22: warning: '_Generic' is a C11 extension [-Wc11-extensions] > int main() { return !isfinite(1.0); } > ^ > /usr/include/math.h:111:21: note: expanded from macro 'isfinite' > #define isfinite(x) __fp_type_select(x, __isfinitef, __isfinite, __isfini= tel) > ^ > /usr/include/math.h:82:39: note: expanded from macro '__fp_type_select' > #define __fp_type_select(x, f, d, ld) _Generic((x), \ > ^ > 1 warning generated. The igraph project used -Werror and this problem caused build failure. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254714-227>