Skip to content

Commit

Permalink
Rename warning flags variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed Oct 20, 2024
1 parent 7ea85f1 commit 7bc45fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ AC_CHECK_DECLS([TIOCSRS485], [], [], [[#include <sys/ioctl.h>]])
AC_CHECK_DECLS([TIOCM_RTS], [], [], [[#include <sys/ioctl.h>]])

# Wtype-limits is not supported by gcc 4.2 (default on recent Mac OS X)
my_CFLAGS="-Wall \
WARNING_CFLAGS="-Wall \
-Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wsign-compare -Wchar-subscripts \
-Wstrict-prototypes -Wshadow \
-Wformat-security"
AC_SUBST([my_CFLAGS])
AC_SUBST([WARNING_CFLAGS])

# Build options
AC_ARG_ENABLE(tests,
Expand Down Expand Up @@ -184,7 +184,7 @@ AC_MSG_RESULT([
includedir: ${includedir}
compiler: ${CC}
cflags: ${CFLAGS}
cflags: ${CFLAGS} ${WARNING_CFLAGS}
ldflags: ${LDFLAGS}
tests: ${enable_tests}
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AM_CPPFLAGS = \
-DLIBEXECDIR=\""$(libexecdir)"\" \
-I${top_srcdir}/src

AM_CFLAGS = ${my_CFLAGS}
AM_CFLAGS = ${WARNING_CFLAGS}

libmodbus_la_SOURCES = \
modbus.c \
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_builddir}/src

AM_CFLAGS = ${my_CFLAGS}
AM_CFLAGS = ${WARNING_CFLAGS}

CLEANFILES = *~ *.log

Expand Down

0 comments on commit 7bc45fb

Please sign in to comment.