Re: signedness issue with old 2.8 gcc (Palm OS project)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



t-timmy <jonathan.carse@xxxxxxxxx> writes:

> I changed m68k=palmos-gcc calls to m68k-palmos-g++ calls, but now every line
> that passes a signed integer or pointer to an unsigned argument fails my
> build. These lines didn't fail under C. The error is something along the
> lines of "passing arg 1 to (char*, char*, char*) changes signedness"
>
> I went through the manual and tried every possible compiler flag I could
> find - -no-sign, -w, -ftraditional, and tons more, but still the build fails
> on these lines.
>
> This wouldn't be that much of a problem if there weren't hundreds of these
> lines. I tried regex'ing them and add a cast but that got me only so far...

Don't be vague.  Show us a small self-contained example.  Tell us the
exact error message.

At a complete guess, it has something to do with a change in whether
"char" is signed or unsigned, and you are mixing "char*" pointers with
"signed char*" or "unsigned char*" pointers.  If that is in fact the
problem, you should fix your code, or perhaps the -funsigned-char or
-fsigned-char options will help.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux