This is an automated email from the git hooks/post-receive script.
fabbione pushed a commit to branch fix-ci
in repository gfs2-utils.
commit 9c73cb1f1984b49d603d0395ff205a6a81c3c91e
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Sat Feb 5 07:05:21 2022 +0100
build: use c99 code build option
fix build on centos7/rhel7:
06:51:31 rgrp.c: In function 'lgfs2_rgrp_read':
06:51:31 rgrp.c:208:2: error: 'for' loop initial declarations are only
allowed in C99 mode
06:51:31 for (unsigned i = 0; i < rgd->rt_length; i++) {
06:51:31 ^
06:51:31 rgrp.c:208:2: note: use option -std=c99 or -std=gnu99 to
compile your code
06:51:31 rgrp.c: In function 'lgfs2_rgrp_relse':
06:51:31 rgrp.c:234:2: error: 'for' loop initial declarations are only
allowed in C99 mode
06:51:31 for (unsigned i = 0; i < rgd->rt_length; i++) {
06:51:31 ^
06:51:31 rgrp.c:249:16: error: redefinition of 'i'
06:51:31 for (unsigned i = 0; i < rgd->rt_length; i++)
06:51:31 ^
06:51:31 rgrp.c:234:16: note: previous definition of 'i' was here
06:51:31 for (unsigned i = 0; i < rgd->rt_length; i++) {
06:51:31 ^
06:51:31 rgrp.c:249:2: error: 'for' loop initial declarations are only
allowed in C99 mode
06:51:31 for (unsigned i = 0; i < rgd->rt_length; i++)
06:51:31 ^
and plenty other spread across the code
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index a33fa2ed..63a41c1d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,6 +53,10 @@ if ! ${MAKE-make} --version /cannot/make/this >/dev/null
2>&1; then
fi
AC_PROG_CC
+AC_PROG_CC_C99
+if test "x$ac_cv_prog_cc_c99" = "xno"; then
+ AC_MSG_ERROR(["C99 support is required"])
+fi
AM_PROG_CC_C_O
AC_PROG_LN_S
AC_PROG_INSTALL
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date