Merge branch 'js/comma-semicolon-confusion'
Code clean-up. * js/comma-semicolon-confusion: detect-compiler: detect clang even if it found CUDA clang: warn when the comma operator is used compat/regex: explicitly mark intentional use of the comma operator wildmatch: avoid using of the comma operator diff-delta: avoid using the comma operator xdiff: avoid using the comma operator unnecessarily clar: avoid using the comma operator unnecessarily kwset: avoid using the comma operator unnecessarily rebase: avoid using the comma operator unnecessarily remote-curl: avoid using the comma operator unnecessarily
This commit is contained in:
@@ -41,6 +41,10 @@ DEVELOPER_CFLAGS += -Wwrite-strings
|
||||
DEVELOPER_CFLAGS += -fno-common
|
||||
DEVELOPER_CFLAGS += -Wunreachable-code
|
||||
|
||||
ifneq ($(filter clang9,$(COMPILER_FEATURES)),)
|
||||
DEVELOPER_CFLAGS += -Wcomma
|
||||
endif
|
||||
|
||||
ifneq ($(filter clang4,$(COMPILER_FEATURES)),)
|
||||
DEVELOPER_CFLAGS += -Wtautological-constant-out-of-range-compare
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user