mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
common.mak: avoid a lot of warnings if make --warn is used
Fix the following warnings by using proper default values: ../common.mak:1: warning: undefined variable 'COMMON_INCLUDED' ../common.mak:87: warning: undefined variable 'V' ../common.mak:95: warning: undefined variable 'W' ../common.mak:98: warning: undefined variable 'D' ../common.mak:107: warning: undefined variable 'ASAN' ../common.mak:249: warning: undefined variable 'OPT_FLAGS' ../common.mak:262: warning: undefined variable 'G' ../common.mak:280: warning: undefined variable 'C' ../common.mak:349: warning: undefined variable 'MAKECMDGOALS' ../common.mak:105: warning: undefined variable 'ENABLE_WERROR' This has two main advantages: 1. Explicit default values 2. `make --warn` shows less false positives Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
561559277d
commit
fc1167fd34
15
common.mak
15
common.mak
@@ -1,5 +1,16 @@
|
||||
ifndef $(COMMON_INCLUDED)
|
||||
COMMON_INCLUDED = true
|
||||
COMMON_INCLUDED ?= false
|
||||
V ?= 0
|
||||
W ?= 0
|
||||
G ?= 0
|
||||
C ?= 0
|
||||
D ?= 0
|
||||
ASAN ?= 0
|
||||
ENABLE_WERROR ?= 0
|
||||
OPT_FLAGS ?=
|
||||
MAKECMDGOALS ?=
|
||||
|
||||
ifeq ($(COMMON_INCLUDED),false)
|
||||
COMMON_INCLUDED := true
|
||||
|
||||
# Global definitions
|
||||
# The variable "DISTRELEASE" should be overwritten in rpm spec files with:
|
||||
|
||||
Reference in New Issue
Block a user