optarg cannot get properly
Neboer opened this issue · 2 comments
Neboer commented
clang version 8.0.0 (tags/RELEASE_800/final) Target: aarch64-unknown-linux-android
ipgw -u1234
return error input.
Neboer commented
in.c:21:53: warning: result of comparison of constant -1 with expression of type 'char' is always true [-Wtautological-constant-out-of-range-compare] ...(option = getopt(argc, argv, "hu:p:ov")) != -1) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
compile warning.
Neboer commented
It's a c11 standard usage. The behavior of old compiler is undefined.