diff options
author | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2001-03-26 20:43:48 +0000 |
---|---|---|
committer | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2001-03-26 20:43:48 +0000 |
commit | ba32caf3a74ad1dae558219ed25807d1dfd022ab (patch) | |
tree | 999a65ba982c2a00c712db8f4bc8da3fa960d9a9 | |
parent | 067d39ad1d04a13a38a02506275a85c209d7bdbe (diff) |
Fixed gcc compiler warnings.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@113 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r-- | src/AdvertisedFiles.c | 3 | ||||
-rw-r--r-- | src/CheckpointRecovery.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/AdvertisedFiles.c b/src/AdvertisedFiles.c index 938f8b7..4aadf35 100644 --- a/src/AdvertisedFiles.c +++ b/src/AdvertisedFiles.c @@ -68,6 +68,9 @@ int IOUtil_RegisterAdvertisedFileListener (cGH *GH, const char *listener, ioAdvertisedFileListenerCallbacks *new_callbacks; + /* prevent compiler warning about unused parameter */ + GH = GH; + if (listener && callbacks) { new_callbacks = (ioAdvertisedFileListenerCallbacks *) diff --git a/src/CheckpointRecovery.c b/src/CheckpointRecovery.c index 26a19c9..7c048d2 100644 --- a/src/CheckpointRecovery.c +++ b/src/CheckpointRecovery.c @@ -33,7 +33,7 @@ static int IOUtil_RecoverFileCompare (struct dirent **a, struct dirent **b); #endif /* HAVE_SCANDIR */ -static void SetInputFlag (int index, const char *optstring, void *arg); +static void SetInputFlag (int vindex, const char *optstring, void *arg); /* Local data holding info on Recover Functions */ static cHandledData *RecoverFunctions = NULL; @@ -761,12 +761,12 @@ static int IOUtil_RecoverFileCompare (struct dirent **a, struct dirent **b) /* callback for CCTK_TraverseString() to set the input flag for the given variable */ -static void SetInputFlag (int index, const char *optstring, void *arg) +static void SetInputFlag (int vindex, const char *optstring, void *arg) { char *flags = (char *) arg; - flags[index] = 1; + flags[vindex] = 1; if (optstring) { |