public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2662] Drop unused variable
@ 2022-09-14 12:18 Jan-Benedict Glaw
0 siblings, 0 replies; only message in thread
From: Jan-Benedict Glaw @ 2022-09-14 12:18 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1457be6dbd78e1fd2f84584e020f9a2b3803181a
commit r13-2662-g1457be6dbd78e1fd2f84584e020f9a2b3803181a
Author: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Date: Wed Sep 14 14:16:52 2022 +0200
Drop unused variable
With the "STABS: remove -gstabs and -gxcoff functionality" patch, a left-over
`start` variable remained unused:
/usr/lib/gcc-snapshot/bin/g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace -o mips.o -MT mips.o -MMD -MP -MF ./.deps/mips.TPo ../../gcc/gcc/config/mips/mips.cc
../../gcc/gcc/config/mips/mips.cc: In function 'void mips_option_override()':
../../gcc/gcc/config/mips/mips.cc:20021:10: error: unused variable 'start' [-Werror=unused-variable]
20021 | int i, start, regno, mode;
| ^~~~~
2022-09-14 Jan-Benedict Glaw <jbglaw@lug-owl.de>
gcc/
* config/mips/mips.cc (mips_option_override): Drop unused variable.
Diff:
---
gcc/config/mips/mips.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc
index 47724950c3e..387376b3df8 100644
--- a/gcc/config/mips/mips.cc
+++ b/gcc/config/mips/mips.cc
@@ -20018,7 +20018,7 @@ mips_set_tune (const struct mips_cpu_info *info)
static void
mips_option_override (void)
{
- int i, start, regno, mode;
+ int i, regno, mode;
if (OPTION_SET_P (mips_isa_option))
mips_isa_option_info = &mips_cpu_info_table[mips_isa_option];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-14 12:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 12:18 [gcc r13-2662] Drop unused variable Jan-Benedict Glaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).