Another message.......

kabir.patel@uk.andersen.com kabir.patel@uk.andersen.com
Thu Feb 7 08:15:00 GMT 2002




I solved that pToUpperC thing....

Basically it was a function that changed text into upper case, so I just used
'toupper' instead

I have another 'warning' message that I want to sort out....

When I compile I get the following:

syb2pv.c:9566: warning: pointer/integer type mismatch in conditional expression

The line in question is as follows:

fprintf(stream,"%s", (strcmp(szCountry,"ID")==0 || strcmp(szCountry,"FE")==0) ?
toupper(pNote) : pNote);

and szCountry is defined as:

char              szCountry[3+1];

I don't see where the 'mismatch' comes from?

Any ideas?

Also, although my c code compiled , and I could run the .exe for most things, I
found that the function that gave the warning messages
wasn't functioning. Are functions that give warning messages just ignored?

Thanks in advance



*******************Internet Email Confidentiality Footer*******************


Privileged/Confidential Information may be contained in this message.  If you
are not the addressee indicated in this message (or responsible for delivery of
the message to such person), you may not copy or deliver this message to anyone.
In such case, you should destroy this message and kindly notify the sender by
reply email. Please advise immediately if you or your employer does not consent
to Internet email for messages of this kind.  Opinions, conclusions and other
information in this message that do not relate to the official business of my
firm shall be understood as neither given nor endorsed by it.




More information about the Gcc-help mailing list