Fix/ignore some warnings with --enable-pthreaded-ubik:
- ubik/ubik.c: move rx_stackSize decl to non-pthread code, since it's
only used there
- budb/db_dump.c: move 'code' decl to non-pthread code, since it's only
used there
- ubik/recovery.c: move return to outside the ifdef, so we still have a
return statement in the pthreaded case
- Add -Wno-error to beacon.c in tubik, to match the ubik case
Change-Id: I614f2425c36e77bb1a08838b45166d8edb080c73
Reviewed-on: http://gerrit.openafs.org/1211
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
afs_int32
canWrite(int fid)
{
+#ifndef AFS_PTHREAD_ENV
afs_int32 code = 0;
+#endif
extern dumpSyncP dumpSyncPtr;
ObtainWriteLock(&dumpSyncPtr->ds_lock);
void
haveWritten(afs_int32 nbytes)
{
+#ifndef AFS_PTHREAD_ENV
afs_int32 code = 0;
+#endif
extern dumpSyncP dumpSyncPtr;
dumpSyncPtr->ds_bytes += nbytes;
void
doneWriting(afs_int32 error)
{
+#ifndef AFS_PTHREAD_ENV
afs_int32 code = 0;
+#endif
/* wait for the reader */
ObtainWriteLock(&dumpSyncPtr->ds_lock);
afs_uint32 SHostAddrs[ADDRSPERSITE];
#if defined(AFS_PTHREAD_ENV)
-char *
+static int
threadNum(void)
{
- return pthread_getspecific(rx_thread_id_key);
+ return (intptr_t)pthread_getspecific(rx_thread_id_key);
}
#endif
${CCRULE}
beacon.o: ${srcdir}/beacon.c
- ${CCRULE}
+ ${CCRULE} @CFLAGS_NOERROR@
lock.o: ${srcdir}/lock.c
${CCRULE}
#if !defined(AFS_PTHREAD_ENV)
/* No corresponding LWP_WaitProcess found anywhere for this -- klm */
LWP_NoYieldSignal(&urecovery_state);
- return 0;
#endif
+ return 0;
}
/*!
pthread_attr_t urecovery_Interact_tattr;
#else
PROCESS junk;
+ extern int rx_stackSize;
#endif
afs_int32 secIndex;
struct rx_securityClass *secClass;
struct rx_service *tservice;
- extern int rx_stackSize;
initialize_U_error_table();