mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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:
@@ -715,6 +715,7 @@ libgit_dependencies = [ ]
|
||||
# Makefile.
|
||||
if get_option('warning_level') in ['2','3', 'everything'] and compiler.get_argument_syntax() == 'gcc'
|
||||
foreach cflag : [
|
||||
'-Wcomma',
|
||||
'-Wdeclaration-after-statement',
|
||||
'-Wformat-security',
|
||||
'-Wold-style-definition',
|
||||
|
||||
Reference in New Issue
Block a user