diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-06-28 10:34:37 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-06-28 10:34:37 +0000 |
commit | a7e1f9a501103037f04eec12c8177480a3586b48 (patch) | |
tree | ea12b1dd65da376ec5387f3a244c21b6ff109854 /src | |
parent | d9667d9d37d0064dc2bb9d764c8743fb4d19f8d1 (diff) |
Little compiler warning fixes
git-svn-id: http://svn.cactuscode.org/flesh/trunk@594 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r-- | src/main/Groups.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/Groups.c b/src/main/Groups.c index 668cf66a..3a90eb94 100644 --- a/src/main/Groups.c +++ b/src/main/Groups.c @@ -147,7 +147,7 @@ int CCTK_CreateGroup(const char *gname, const char *thorn, const char *imp, va_list ap; char *variable_name; - cGroupDefinition *group; + cGroupDefinition *group=NULL; int variable; @@ -264,7 +264,7 @@ cGroupDefinition *CCTK_SetupGroup(const char *implementation, if((group_num = CCTK_GetGroupIndex(fullname1)) == -1) { /* Resize the array of groups */ - if(temp = (cGroupDefinition *)realloc(groups, (n_groups+1)*sizeof(cGroupDefinition))) + if(temp = ((cGroupDefinition *)realloc(groups, (n_groups+1)*sizeof(cGroupDefinition)))) { groups = temp; @@ -362,9 +362,8 @@ cGroupDefinition *CCTK_SetupGroup(const char *implementation, int CCTK_GetVarIndex(const char *variable_name) { int retval; - int gnum,group_num; + int gnum; int variable; - int fullname = 0; int ierr; char *message; char *realimpname; @@ -638,7 +637,7 @@ char *CCTK_GetFullName(int var) @@*/ int CCTK_GTypeNumber(const char *type) { - int retval; + int retval=-1; if(!strcmp(type, "SCALAR")) { @@ -674,7 +673,7 @@ int CCTK_GTypeNumber(const char *type) @@*/ int CCTK_VTypeNumber(const char *type) { - int retval; + int retval=-1; if(!strcmp(type, "INTEGER")) { @@ -715,7 +714,7 @@ int CCTK_VTypeNumber(const char *type) @@*/ int CCTK_GScopeNumber(const char *type) { - int retval; + int retval=-1; if(!strcmp(type, "PRIVATE")) { |