Quiet compiler warnings

Eliminate three "warning: suggest parentheses around assignment used as truth value"
Obviously not needed, but it's easier to add the superfluous parentheses
than remember that these warnings are benign.
This commit is contained in:
Larry Doolittle 2008-11-16 13:10:58 -08:00 committed by Stephen Williams
parent 4892e93a09
commit fe38f7a9a9
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ void vpip_bin_str_to_vec4(vvp_vector4_t&vec4, const char*buf)
unsigned skip_chars = 0;
const char*tbuf = buf;
/* Find the number of non-numeric characters. */
while (tbuf = strpbrk(tbuf, "-_")) {
while ((tbuf = strpbrk(tbuf, "-_"))) {
skip_chars += 1;
tbuf += 1;
}

View File

@ -36,7 +36,7 @@ void vpip_hex_str_to_vec4(vvp_vector4_t&val, const char*str)
unsigned skip_chars = 0;
const char*tstr = str;
/* Find the number of non-numeric characters. */
while (tstr = strpbrk(tstr, "-_")) {
while ((tstr = strpbrk(tstr, "-_"))) {
skip_chars += 1;
tstr += 1;
}

View File

@ -36,7 +36,7 @@ void vpip_oct_str_to_vec4(vvp_vector4_t&val, const char*str)
unsigned skip_chars = 0;
const char*tstr = str;
/* Find the number of non-numeric characters. */
while (tstr = strpbrk(tstr, "-_")) {
while ((tstr = strpbrk(tstr, "-_"))) {
skip_chars += 1;
tstr += 1;
}