From d31846a1b993cfe4b7d983db0e5c140dac3b0220 Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Wed, 29 Jan 2014 09:54:34 -0800 Subject: mips: silence 'set but not used' warnings This patch uses 'attribute_unused' to clean up a number of warnings messages that are generated when doing a MIPS build. All of the changes are in MIPS specific files and there are no code changes other then adding the unused attribute where needed. Signed-off-by: Steve Ellcey Signed-off-by: Bernhard Reutner-Fischer --- libpthread/nptl/sysdeps/mips/tls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpthread/nptl/sysdeps') diff --git a/libpthread/nptl/sysdeps/mips/tls.h b/libpthread/nptl/sysdeps/mips/tls.h index c522f21ef..09baf1292 100644 --- a/libpthread/nptl/sysdeps/mips/tls.h +++ b/libpthread/nptl/sysdeps/mips/tls.h @@ -120,7 +120,7 @@ typedef struct operation can cause a failure 'errno' must not be touched. */ # define TLS_INIT_TP(tcbp, secondcall) \ ({ INTERNAL_SYSCALL_DECL (err); \ - long result_var; \ + long result_var attribute_unused; \ result_var = INTERNAL_SYSCALL (set_thread_area, err, 1, \ (char *) (tcbp) + TLS_TCB_OFFSET); \ INTERNAL_SYSCALL_ERROR_P (result_var, err) \ -- cgit v1.2.3