Skip to content

Commit 81ae2a8

Browse files
committed
[clang] Fix '-Wunused-variable' warnings. NFC
1 parent 9b99a30 commit 81ae2a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3203,13 +3203,13 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
32033203
options::OPT_fstrict_float_cast_overflow, false))
32043204
CmdArgs.push_back("-fno-strict-float-cast-overflow");
32053205

3206-
if (const Arg *A = Args.getLastArg(options::OPT_fcx_limited_range))
3206+
if (Args.hasArg(options::OPT_fcx_limited_range))
32073207
CmdArgs.push_back("-fcx-limited-range");
3208-
if (const Arg *A = Args.getLastArg(options::OPT_fcx_fortran_rules))
3208+
if (Args.hasArg(options::OPT_fcx_fortran_rules))
32093209
CmdArgs.push_back("-fcx-fortran-rules");
3210-
if (const Arg *A = Args.getLastArg(options::OPT_fno_cx_limited_range))
3210+
if (Args.hasArg(options::OPT_fno_cx_limited_range))
32113211
CmdArgs.push_back("-fno-cx-limited-range");
3212-
if (const Arg *A = Args.getLastArg(options::OPT_fno_cx_fortran_rules))
3212+
if (Args.hasArg(options::OPT_fno_cx_fortran_rules))
32133213
CmdArgs.push_back("-fno-cx-fortran-rules");
32143214
}
32153215

0 commit comments

Comments
 (0)