[PATCH] [BUILDROBOT] RX: Mark unused argument

Jan-Benedict Glaw jbglaw@lug-owl.de
Mon Nov 3 09:29:00 GMT 2014


Hi!

I noticed that rx_handle_func_attribute() doesn't use it's `args'
argument any longer since DJ removed it's a gcc_assert() using it.
See eg. this build:
http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=372376

[...]
g++ -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/opt/cfarm/mpc/include  -I../../../gcc/gcc/../libdecnumber -I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../../gcc/gcc/../libbacktrace    -o rx.o -MT rx.o -MMD -MP -MF ./.deps/rx.TPo ../../../gcc/gcc/config/rx/rx.c
../../../gcc/gcc/config/rx/rx.c:2675:13: error: unused parameter ‘args’ [-Werror=unused-parameter]
      tree   args,
             ^
cc1plus: all warnings being treated as errors
make[2]: *** [rx.o] Error 1





Silence the warning. Ok for mainline?


2014-11-03  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

	* config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.

 
diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c
index f3e1129..e757566 100644
--- a/gcc/config/rx/rx.c
+++ b/gcc/config/rx/rx.c
@@ -2672,7 +2672,7 @@ rx_elf_asm_destructor (rtx symbol, int priority)
 static tree
 rx_handle_func_attribute (tree * node,
 			  tree   name,
-			  tree   args,
+			  tree   args ATTRIBUTE_UNUSED,
 			  int    flags ATTRIBUTE_UNUSED,
 			  bool * no_add_attrs)
 {
-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:              Alles sollte so einfach wie möglich gemacht sein.
the second  :                          Aber nicht einfacher.  (Einstein)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141103/93f40eb3/attachment.sig>


More information about the Gcc-patches mailing list