Skip to content

Commit

Permalink
Make: break directly on compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
olofhagsand committed Jan 23, 2025
1 parent 592495d commit ccda986
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ SUBDIRS += util
all: $(SUBDIRS)

$(SUBDIRS):
(cd $@ && $(MAKE) $(MFLAGS) all)
(cd $@ && $(MAKE) $(MFLAGS) all || exit 1)

install:
for i in $(SUBDIRS) doc ; \
Expand Down
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu


# Default CFLAGS and INSTALLFLAGS unless set by environment
: ${CFLAGS="-O2 -Wall"}
: ${CFLAGS="-O2 -Wall -Werror"}
: ${INSTALLFLAGS="-s"}

# where autotool scripts are: install-sh, config.sub, config.guess
Expand Down Expand Up @@ -4600,7 +4600,7 @@ fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debug is $ac_enable_debug" >&5
printf "%s\n" "debug is $ac_enable_debug" >&6; }
if test "$ac_enable_debug" = "yes"; then
CFLAGS="-g -Wall"
CFLAGS="-g -Wall -Werror"
INSTALLFLAGS=""
fi

Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
AC_INIT([controller],[1.1])

# Default CFLAGS and INSTALLFLAGS unless set by environment
: ${CFLAGS="-O2 -Wall"}
: ${CFLAGS="-O2 -Wall -Werror"}
: ${INSTALLFLAGS="-s"}

# where autotool scripts are: install-sh, config.sub, config.guess
Expand Down Expand Up @@ -101,7 +101,7 @@ AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],[Build with debug symbols,

AC_MSG_RESULT(debug is $ac_enable_debug)
if test "$ac_enable_debug" = "yes"; then
CFLAGS="-g -Wall"
CFLAGS="-g -Wall -Werror"
INSTALLFLAGS=""
fi

Expand Down

0 comments on commit ccda986

Please sign in to comment.