Workaround for m68k-pic-coff-gcc bug re initialized local variables (arrays?)
authorshort <>
Wed, 27 Feb 2002 22:44:47 +0000 (22:44 +0000)
committershort <>
Wed, 27 Feb 2002 22:44:47 +0000 (22:44 +0000)
common/gsm-api.c

index 0765c22..229232d 100644 (file)
@@ -661,7 +661,7 @@ bool GetMemoryTypeString(char *memorytext, GSM_MemoryType *type)
     char *name;
   } GSM_MTStrings;
 
     char *name;
   } GSM_MTStrings;
 
-  GSM_MTStrings mystring[] = {
+static  GSM_MTStrings mystring[] = {
     {GMT_ME,"ME"},
     {GMT_SM,"SM"},
     {GMT_FD,"FD"},
     {GMT_ME,"ME"},
     {GMT_SM,"SM"},
     {GMT_FD,"FD"},
@@ -694,7 +694,7 @@ bool GetMemoryTypeID(char *memorytext, GSM_MemoryType *type)
     char *name;
   } GSM_MTStrings;
 
     char *name;
   } GSM_MTStrings;
 
-  GSM_MTStrings mystring[] = {
+static  GSM_MTStrings mystring[] = {
     {GMT_ME,"ME"},
     {GMT_SM,"SM"},
     {GMT_FD,"FD"},
     {GMT_ME,"ME"},
     {GMT_SM,"SM"},
     {GMT_FD,"FD"},