bug-gnulib
[Top][All Lists]
Advanced

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

signal.h:682:13: error: size of array 'verify_NSIG_constraint' is negati


From: Tim Rühsen
Subject: signal.h:682:13: error: size of array 'verify_NSIG_constraint' is negative
Date: Sun, 2 Aug 2020 13:55:53 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hey,

after updating gnulib, I see this on all CI pipelines (Debian, Fedora,
Alpine, Arch, ...):

In file included from /usr/include/x86_64-linux-gnu/sys/param.h:28,
                 from ./minmax.h:34,
                 from md2.c:30:
./signal.h:682:13: error: size of array 'verify_NSIG_constraint' is negative
  682 | typedef int verify_NSIG_constraint[NSIG <= 32 ? 1 : -1];
      |             ^~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:2261: md2.lo] Error 1


The surrounding code in lib/signal.h is
#if 1
# if !0

#  ifndef GNULIB_defined_signal_blocking
#   define GNULIB_defined_signal_blocking 1
#  endif

/* Maximum signal number + 1.  */
#  ifndef NSIG
#   define NSIG 32
#  endif

/* This code supports only 32 signals.  */
#  if !GNULIB_defined_verify_NSIG_constraint
typedef int verify_NSIG_constraint[NSIG <= 32 ? 1 : -1];
#   define GNULIB_defined_verify_NSIG_constraint 1
#  endif

# endif


Regards, Tim

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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