File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1010 * pam_tcb/support.h (pam_tcb_getlogin): New function.
1111 Small static inline wrapper around getlogin(3).
1212
13+ * Make.defs: Add "-Wextra" to default CFLAGS. Add an option to
14+ enable "-Werror" also.
15+
13162021-09-25 Björn Esser <besser82 at fedoraproject.org>
1417
1518 * pam_tcb/support.c (_set_ctrl): Request automatic prefix only if
Original file line number Diff line number Diff line change @@ -2,11 +2,18 @@ CC = gcc
22INSTALL = install -p
33MKDIR = mkdir
44
5+ # Flag to enable -Werror on build.
6+ WERROR =
7+
58DBGFLAG = #-ggdb
69ifndef CFLAGS
710CFLAGS = -O2
811endif
9- CFLAGS += $(DBGFLAG) -I../include -Wall
12+ CFLAGS += $(DBGFLAG) -I../include
13+ CFLAGS += -Wall -Wextra
14+ ifneq ($(WERROR),)
15+ CFLAGS += -Werror
16+ endif
1017#CFLAGS += -DFAIL_RECORD
1118LDFLAGS += $(DBGFLAG) -L../libs
1219
You can’t perform that action at this time.
0 commit comments