OSDN Git Service

nptl: fix compiler warning due to unused-but-set-variable
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Wed, 14 Mar 2012 15:22:19 +0000 (16:22 +0100)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Mon, 26 Mar 2012 07:57:57 +0000 (09:57 +0200)
commit089de40d5727a2a5478767e3b9c1a43bc46b7e46
tree8a5de1d054855851e3e865fde36543b858ffb403
parent21d6091b0de9448e9f160904b0b35d2cc764a4ea
nptl: fix compiler warning due to unused-but-set-variable

gcc 4.6.x raises useful warnings due to unused-but-set-variable,
This patch fixes the following one by using properly preprocessor
guard

libpthread/nptl/sysdeps/pthread/pthread_cond_timedwait.c: In function '__pthread_cond_timedwait':
libpthread/nptl/sysdeps/pthread/pthread_cond_timedwait.c:103:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
libpthread/nptl/sysdeps/pthread/pthread_cond_timedwait.c