gdbserver: remove unused variable
authorEnze Li <enze.li@hotmail.com>
Mon, 11 Jul 2022 12:53:48 +0000 (20:53 +0800)
committerEnze Li <enze.li@hotmail.com>
Wed, 13 Jul 2022 12:10:18 +0000 (20:10 +0800)
commitcf6c1e710ee162a5adb0ae47acb731f2bfecc956
treebd6100f8621d56168c9bb87ad53b16899ab8e318
parent52c0a455466aa437e4b8d6967e44767c8f3fa260
gdbserver: remove unused variable

When building with clang 15, I got this error:

  CXX    server.o
server.cc:2985:10: error: variable 'new_argc' set but not used [-Werror,-Wunused-but-set-variable]
  int i, new_argc;
             ^
Remove the unused variable to eliminate the error.

Tested by rebuilding on x86_64-linux with clang 15.
gdbserver/server.cc