Skip to content

Commit

Permalink
moved -Werror from default build target to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwarz committed Feb 3, 2018
1 parent a9fca78 commit 7504361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ BIN = lsmount
OBJ = lsmount.o lsmgrid.o options.o lsmcolors.o helper.o
VPATH = src

all: CFLAGS += -O2 -Wall -Werror -pedantic -fPIE -D_FORTIFY_SOURCE=1
all: CFLAGS += -O2 -Wall -pedantic -fPIE -D_FORTIFY_SOURCE=1
all: $(BIN)

debug: CFLAGS += -g -Og -DDEBUG -Wextra -pedantic -Wcast-qual -Wcast-align -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Wno-suggest-attribute=noreturn -Wno-write-strings -Wpointer-arith -Wredundant-decls -Wundef -Wpacked -Wunreachable-code -Wno-unused-parameter -Wconversion -Wshadow -Wstrict-prototypes -Wbad-function-cast -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wnested-externs
debug: CFLAGS += -g -Og -DDEBUG -Werror -Wextra -pedantic -Wcast-qual -Wcast-align -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Wno-suggest-attribute=noreturn -Wno-write-strings -Wpointer-arith -Wredundant-decls -Wundef -Wpacked -Wunreachable-code -Wno-unused-parameter -Wconversion -Wshadow -Wstrict-prototypes -Wbad-function-cast -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wnested-externs
debug: $(BIN)

lsmount: lsmount.o lsmgrid.o options.o lsmcolors.o helper.o
Expand Down

0 comments on commit 7504361

Please sign in to comment.