aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorDavid Billinghurst <David.Billinghurst@riotinto.com>2001-09-05 09:07:11 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2001-09-05 09:07:11 +0000
commitcaa297fe38f3cd4f60596e49513c88efb9d31e83 (patch)
tree727ba112a2f81e810c2023c3726bb3e1ef82098e /gcc/gcc.c
parente7503d92508630ebc2537cf95da966f465bb9576 (diff)
downloadgcc-caa297fe38f3cd4f60596e49513c88efb9d31e83.zip
gcc-caa297fe38f3cd4f60596e49513c88efb9d31e83.tar.gz
gcc-caa297fe38f3cd4f60596e49513c88efb9d31e83.tar.bz2
gcc.c: (process_command) Add parentheses around assignment used as truth value.
* gcc.c: (process_command) Add parentheses around assignment used as truth value. From-SVN: r45411
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 231d558..cbf62f8 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3577,9 +3577,9 @@ process_command (argc, argv)
have_c = 1;
break;
}
- else if (skip = SWITCH_TAKES_ARG (argv[j][1]))
+ else if ((skip = SWITCH_TAKES_ARG (argv[j][1])))
j += skip - (argv[j][2] != 0);
- else if (skip = WORD_SWITCH_TAKES_ARG (argv[j] + 1))
+ else if ((skip = WORD_SWITCH_TAKES_ARG (argv[j] + 1)))
j += skip;
}
j++;