bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lib/malloca.c: error when compiling "groff"


From: Bjarni Ingi Gislason
Subject: lib/malloca.c: error when compiling "groff"
Date: Wed, 14 Sep 2022 20:24:34 +0000

CC = gcc (Debian 12.2.0-1) 12.2.0

  CC       lib/libgnu_a-malloca.o
../lib/malloca.c:42:16: error: expected declaration specifiers or '...' before 
numeric constant
   42 | static_assert (2 * sa_alignment_max - 1 <= (small_t) -1);
      |                ^
make[1]: *** [Makefile:8629: lib/libgnu_a-malloca.o] Error 1


  Line was recently changed in commit:

28465e160f242e39e6008e6de674e7c2360cf7df
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Tue Sep 13 17:29:36 2022 -0500


 /* Type for holding very small pointer differences.  */
 typedef unsigned char small_t;
 /* Verify that it is wide enough.  */
-verify (2 * sa_alignment_max - 1 <= (small_t) -1);
+static_assert (2 * sa_alignment_max - 1 <= (small_t) -1);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]