]> Savannah Git Hosting - gnulib.git/commit
Use statement-expressions without warnings, even in strict ISO C mode.
authorBruno Haible <bruno@clisp.org>
Mon, 4 Sep 2023 19:54:09 +0000 (21:54 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 4 Sep 2023 19:54:09 +0000 (21:54 +0200)
commit835209cfdb587743378c7f43b41acc6c1f2cc956
tree03e2a3766a1fdaa4bb1070883861ec37d9ca1915
parent0b61e454073085beb7936c645aab54e4ae4814f7
Use statement-expressions without warnings, even in strict ISO C mode.

Suggested by Eric Blake <eblake@redhat.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-09/msg00025.html>.

* lib/error.in.h (__gl_error_call): Use the variant with obvious control
flow also with clang. Use '__extension__' to avoid -Wpedantic warnings.
* lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Define as
macros even when __STRICT_ANSI__ is defined. But use '__extension__' to
avoid -Wpedantic warnings.
* lib/setenv.c (KNOWN_VALUE): Use '__extension__' to avoid -Wpedantic
warnings.
* lib/xalloc-oversized.h (xalloc_oversized): Use optimized variant even
when __STRICT_ANSI__ is defined. But use '__extension__' to avoid
-Wpedantic warnings.
ChangeLog
lib/error.in.h
lib/math.in.h
lib/setenv.c
lib/xalloc-oversized.h