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:
parent
4892e93a09
commit
fe38f7a9a9
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue