Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils_base.c: Fix unused value and parentheses warnings
See, In file included from test_utils.c:28: ../../lib/utils_base.c:338:8: warning: expression result unused [-Wunused-value] for (varlist; isspace(varlist[0]); varlist++); ^~~~~~~ ../../lib/utils_base.c:343:9: warning: expression result unused [-Wunused-value] for (varlist; isspace(varlist[0]); varlist++); ^~~~~~~ ../../lib/utils_base.c:349:10: warning: expression result unused [-Wunused-value] for (varlist; isspace(varlist[0]); varlist++); ^~~~~~~ ../../lib/utils_base.c:351:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = index(varlist, sep)) { ~~~~^~~~~~~~~~~~~~~~~~~~~ ../../lib/utils_base.c:351:13: note: place parentheses around the assignment to silence this warning if (tmp = index(varlist, sep)) { ^ ( ) ../../lib/utils_base.c:351:13: note: use '==' to turn this assignment into an equality comparison if (tmp = index(varlist, sep)) { ^ == ../../lib/utils_base.c:367:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = index(varlist, sep)) { ~~~~^~~~~~~~~~~~~~~~~~~~~ ../../lib/utils_base.c:367:11: note: place parentheses around the assignment to silence this warning if (tmp = index(varlist, sep)) { ^ ( ) ../../lib/utils_base.c:367:11: note: use '==' to turn this assignment into an equality comparison if (tmp = index(varlist, sep)) { ^ ==
- Loading branch information