veriexec: fix use of getopt
getopt(3) returns int type not char. Using char triggers the -Wtautological-constant-out-of-range-compare warning with clang. Change the type of the variable used for holding the return value of getopt(3) to int to match the prototype and eliminate the warning. MFC after: 1 week
This commit is contained in:
@@ -140,8 +140,7 @@ main(int argc, char *argv[])
|
||||
{
|
||||
long long converted_int;
|
||||
uint32_t state;
|
||||
char c;
|
||||
int x;
|
||||
int c, x;
|
||||
|
||||
if (argc < 2)
|
||||
return (veriexec_usage());
|
||||
|
||||
Reference in New Issue
Block a user