gdb/csky-tdep.c: fix -Wunused-but-set-variable error
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 3 Dec 2021 21:31:27 +0000 (16:31 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 9 Dec 2021 19:05:56 +0000 (14:05 -0500)
commit0cb857dcd06957ddc433002cf3b572c0cc9183f5
tree1c48d5b486676110331cb9d326691b09ccee6205
parent3d950cb72ded46673bafb21a00252afd5bc1cbbe
gdb/csky-tdep.c: fix -Wunused-but-set-variable error

Fix these, seen when building with clang 14:

      CXX    csky-tdep.o
    /home/simark/src/binutils-gdb/gdb/csky-tdep.c:332:7: error: variable 'need_dummy_stack' set but not used [-Werror,-Wunused-but-set-variable]
      int need_dummy_stack = 0;
          ^
    /home/simark/src/binutils-gdb/gdb/csky-tdep.c:805:12: error: variable 'offset' set but not used [-Werror,-Wunused-but-set-variable]
                  int offset = 0;
                      ^

Change-Id: I6703bcb50e83c50083f716f4084ef6aa30d659c4
gdb/csky-tdep.c