1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: fix shadowing warning (#7289)

This commit is contained in:
ka-weihe
2020-12-12 23:06:02 +01:00
committed by GitHub
parent f3aac0bc6c
commit 4d025582c0
4 changed files with 36 additions and 26 deletions

View File

@@ -247,7 +247,9 @@ fn (mut v Builder) cc() {
// TODO : try and remove the below workaround options when the corresponding
// warnings are totally fixed/removed
mut args := [v.pref.cflags, '-std=gnu99', '-Wall', '-Wextra', '-Wno-unused-variable', '-Wno-unused-parameter',
'-Wno-unused-result', '-Wno-unused-function', '-Wno-missing-braces', '-Wno-unused-label']
'-Wno-unused-result', '-Wno-unused-function', '-Wno-missing-braces', '-Wno-unused-label', '-Wshadow',
'-Wno-unused',
]
if v.pref.os == .ios {
args << '-framework Foundation'
args << '-framework UIKit'