Fix clang -Wextra except -Wunused-parameter.
Cleared all warnings that occur when passing CFLAGS="-Wall -Wextra -Wno-unused-parameter" to make using clang 3.3 on Linux x86-64.
This commit is contained in:
committed by
Michael Stapelberg
parent
ac74a63662
commit
9c15b9504e
@ -232,7 +232,7 @@ struct CommandResult *parse_command(const char *input) {
|
||||
|
||||
/* The "<=" operator is intentional: We also handle the terminating 0-byte
|
||||
* explicitly by looking for an 'end' token. */
|
||||
while ((walk - input) <= len) {
|
||||
while ((size_t)(walk - input) <= len) {
|
||||
/* skip whitespace and newlines before every token */
|
||||
while ((*walk == ' ' || *walk == '\t' ||
|
||||
*walk == '\r' || *walk == '\n') && *walk != '\0')
|
||||
|
Reference in New Issue
Block a user