diff options
author | Jan-Benedict Glaw <jbglaw@lug-owl.de> | 2014-12-17 17:10:37 +0000 |
---|---|---|
committer | Jan-Benedict Glaw <jbglaw@gcc.gnu.org> | 2014-12-17 17:10:37 +0000 |
commit | 53fea7871c53beda842cadc6768547b2be81d274 (patch) | |
tree | 7567c43c046df68135db30397e07996703c0ca5d /gcc | |
parent | d8e103f96ff66b964a5487c437600fdc759f4b07 (diff) | |
download | gcc-53fea7871c53beda842cadc6768547b2be81d274.zip gcc-53fea7871c53beda842cadc6768547b2be81d274.tar.gz gcc-53fea7871c53beda842cadc6768547b2be81d274.tar.bz2 |
MSP430: Fix unused arg warning
The build robot found this:
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 msp430.o -MT msp430.o -MMD -MP -MF ./.deps/msp430.TPo ../../../gcc/gcc/config/msp430/msp430.c
../../../gcc/gcc/config/msp430/msp430.c:979:43: error: unused parameter ‘file’ [-Werror=unused-parameter]
msp430_asm_output_addr_const_extra (FILE *file, rtx x)
^
cc1plus: all warnings being treated as errors
make[2]: *** [msp430.o] Error 1
(See for example this build:
http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=384666)
Ok for this one?
2014-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* config/msp430/msp430.c (msp430_asm_output_addr_const_extra): Fix
unused argument warning.
From-SVN: r218828
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/msp430/msp430.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b1b0b39..b3fef5d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de> + + * config/msp430/msp430.c (msp430_asm_output_addr_const_extra): Fix + unused argument warning. + 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com> * dwarf2out.h (struct array_descr_info): Remove the base_decl field. diff --git a/gcc/config/msp430/msp430.c b/gcc/config/msp430/msp430.c index fe97f27..bf29e18 100644 --- a/gcc/config/msp430/msp430.c +++ b/gcc/config/msp430/msp430.c @@ -976,7 +976,7 @@ msp430_asm_integer (rtx x, unsigned int size, int aligned_p) #undef TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA #define TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA msp430_asm_output_addr_const_extra static bool -msp430_asm_output_addr_const_extra (FILE *file, rtx x) +msp430_asm_output_addr_const_extra (FILE *file ATTRIBUTE_UNUSED, rtx x) { debug_rtx(x); return false; |