mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
Ignore old style definition warnings in generated code
Older flex can generate functions that trigger the "old-style-definition" warning. Since it's generated code, just ignore it. Change-Id: If475507561498b976a2942bd0084975814ab6a76 Reviewed-on: http://gerrit.openafs.org/2603 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
de341580a6
commit
850567f172
@ -1074,6 +1074,12 @@ else
|
|||||||
CFLAGS_NOUNUSED=
|
CFLAGS_NOUNUSED=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "x$GCC" = "xyes"; then
|
||||||
|
CFLAGS_NOOLDSTYLE="-Wno-old-style-definition"
|
||||||
|
else
|
||||||
|
CFLAGS_NOOLDSTYLE=
|
||||||
|
fi
|
||||||
|
|
||||||
dnl horribly cheating, assuming double / is ok.
|
dnl horribly cheating, assuming double / is ok.
|
||||||
case $INSTALL in
|
case $INSTALL in
|
||||||
./* )
|
./* )
|
||||||
@ -1126,6 +1132,7 @@ AC_SUBST(XCFLAGS)
|
|||||||
AC_SUBST(CFLAGS_NOERROR)
|
AC_SUBST(CFLAGS_NOERROR)
|
||||||
AC_SUBST(CFLAGS_NOSTRICT)
|
AC_SUBST(CFLAGS_NOSTRICT)
|
||||||
AC_SUBST(CFLAGS_NOUNUSED)
|
AC_SUBST(CFLAGS_NOUNUSED)
|
||||||
|
AC_SUBST(CFLAGS_NOOLDSTYLE)
|
||||||
AC_SUBST(XCFLAGS64)
|
AC_SUBST(XCFLAGS64)
|
||||||
AC_SUBST(XLDFLAGS)
|
AC_SUBST(XLDFLAGS)
|
||||||
AC_SUBST(XLDFLAGS64)
|
AC_SUBST(XLDFLAGS64)
|
||||||
|
@ -49,7 +49,7 @@ libcom_err.a: error_msg.o et_name.o com_err.o AFS_component_version_number.o
|
|||||||
# so we need to add the source directory to the includes to pick up local headers.
|
# so we need to add the source directory to the includes to pick up local headers.
|
||||||
#
|
#
|
||||||
error_table.o: error_table.c
|
error_table.o: error_table.c
|
||||||
$(CC) $(CFLAGS) -I${srcdir} @CFLAGS_NOUNUSED@ -c error_table.c
|
$(CC) $(CFLAGS) -I${srcdir} @CFLAGS_NOUNUSED@ @CFLAGS_NOOLDSTYLE@ -c error_table.c
|
||||||
|
|
||||||
#
|
#
|
||||||
# Installation targets
|
# Installation targets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user