Skip to content
This repository was archived by the owner on Mar 6, 2020. It is now read-only.

Commit bbdad92

Browse files
committedDec 7, 2018
scripts/build_docker: abort package builds on compiler warnings
Don't allow any more compile warnings to creep in by aborting package builds when compiler warnings are encountered. The restriction is relaxed for test runs so devs may still use CI to test work in progress.
1 parent c5fe251 commit bbdad92

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed
 

‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ services:
4848
- docker
4949

5050
before_install:
51-
- .travis/check_sftp.sh
51+
- .travis/check_sftp.sh
5252

5353
env:
5454
global:

‎scripts/build_docker

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ case $CMD in
109109
-e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
110110
-e TRAVIS_REPO=$TRAVIS_REPO
111111
-e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG
112+
-e DPKG_CFLAGS="${DPKG_CFLAGS} -Werror"
112113
)
113114

114115
BUILD_CL=( bash -xec "

‎src/Makefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,8 @@ DEBUG := -g -Wall -funwind-tables
371371
PROFILE_CFLAGS :=
372372
PROFILE_LDFLAGS :=
373373

374-
CFLAGS := $(INCLUDE) $(OPT) $(DEBUG) $(PROFILE_CFLAGS) -DULAPI $(call cc-option,-std=gnu99 -fgnu89-inline)
374+
CFLAGS := $(INCLUDE) $(OPT) $(DEBUG) $(DPKG_CFLAGS) $(PROFILE_CFLAGS) \
375+
-DULAPI $(call cc-option,-std=gnu99 -fgnu89-inline)
375376

376377
# enable runtime comparison of GIT_CONFIG_SHA (config.h) and GIT_BUILD_SHA
377378
CFLAGS += -DGIT_BUILD_SHA=\"'$(GIT_BUILD_SHA)'\"
@@ -392,7 +393,7 @@ BASE_CXXFLAGS:= $(INCLUDE) $(CXXFLAGS) \
392393
$(ARCH_CFLAGS)
393394

394395
CXXFLAGS := $(BASE_CXXFLAGS) -DULAPI
395-
RT_CXXFLAGS := $(BASE_CXXFLAGS)
396+
RT_CXXFLAGS := $(BASE_CXXFLAGS)
396397

397398
ifeq ($(RUN_IN_PLACE),yes)
398399
LDFLAGS += -L$(LIB_DIR) -Wl,-rpath,$(LIB_DIR)
@@ -1672,7 +1673,8 @@ $(sort $(RTOBJS)) : $(OBJDIR)/%.o : %.c $(DEPDIR)/%.d
16721673
$(ECHO) Compiling realtime $(threads) $<
16731674
@rm -f $@
16741675
@mkdir -p $(dir $@)
1675-
$(Q)$(CC) -c $(OPT) $(DEBUG) $(EXTRA_CFLAGS) $< -o $@
1676+
$(Q)$(CC) -c $(OPT) $(DPKG_CFLAGS) $(DEBUG) \
1677+
$(EXTRA_CFLAGS) $< -o $@
16761678

16771679
# Rules to make .o (object) files from .cc
16781680
$(sort $(CXXRTOBJS)) : $(OBJDIR)/%.o : %.cc $(DEPDIR)/%.d

0 commit comments

Comments
 (0)
This repository has been archived.