compiling give me this error

enerating 68K resources from 'Gas.rcp'.
Compiling main.c...
Compiling frmMain.c...
frmMain.c: In function `getfielddata':
frmMain.c:80: warning: assignment makes pointer from integer without a cast
frmMain.c:81: warning: assignment makes pointer from integer without a cast
frmMain.c:82: warning: assignment makes pointer from integer without a cast
frmMain.c:83: warning: assignment makes pointer from integer without a cast
frmMain.c:84: warning: assignment makes pointer from integer without a cast
frmMain.c:85: warning: assignment makes pointer from integer without a cast
frmMain.c:86: warning: assignment makes pointer from integer without a cast
frmMain.c: At top level:
frmMain.c:91: warning: `GetFieldText' was declared implicitly `extern' and later 
`static'
frmMain.c:80: warning: previous declaration of `GetFieldText'
frmMain.c:91: warning: type mismatch with previous implicit declaration
frmMain.c:80: warning: previous implicit declaration of `GetFieldText'
frmMain.c:91: warning: `GetFieldText' was previously implicitly declared to return 
`int'
Linking...
Building program file ./Debug/Gas.prc...
-----------------------
Compile successful.

on this code
static void getfielddata()
{
 /* field info gasP=gasPSI, gasT=gasTEMP, gasO=gasORFICE, gasD=gasDIFFPSI, 
gasS=gasSCFM, gasM=gasMMBTU, gasE=gasPIPEID */
        Char *gasP, *gasT, *gasO, *gasD, *gasS, *gasM, *gasE;
 gasP = GetFieldText(gasPSI);
 gasT = GetFieldText(gasTEMP);
 gasO = GetFieldText(gasORFICE);
 gasD = GetFieldText(gasDIFFPSI);
 gasS = GetFieldText(gasSCFM);
 gasM = GetFieldText(gasMMBTU);
 gasE = GetFieldText(gasPIPEID);
}

/* Gets and returns the text in a field given the field's ID */
static Char *GetFieldText(UInt16 fieldID)
{
        FormType *formPtr = FrmGetActiveForm();
        UInt16 fieldIndex = FrmGetObjectIndex(formPtr, fieldID);
        FieldType *fieldPtr = (FieldType *) FrmGetObjectPtr(formPtr, fieldIndex);
        Char *textPtr = FldGetTextPtr(fieldPtr);
        if(textPtr == NULL)
                return "";
        return textPtr;
}
and I dont know why, can some one tell me what I am missing
Thanks


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to