Re: howto get rid of 'pointer arguments differ in signedness'



Dildo Baggins <el_simeon@xxxxxxxxxxxx> writes:
Rainer Weikusat wrote:
Excuse me if this is still common knowledge, but there is reason to
believe in the opposite ...


I usually strive for code that yelds no warning, because every one
could be a bugs source.

There are actually arguments against using obfuscation tricks too
'sophisticated' for the gcc code analyzer to silence pointless
compilation noises. At least they ... well ... obfuscate the
code.

Anyway, couldn't you just add the -Wno-pointer-sign to the makefile?

The same way I could just change all the code I am using, could just
maintain a compiler for x86 separate from the one included in the
distribution I am using, could just ignore the warning, could just
fork the compiler outright, could just write my own compiler etc.

None of which is going to improve the behaviour of this compiler.


.



Relevant Pages

  • Re: Why INFINITE loop in a thread occupy so much CPU time??
    ... With the attendant warning about the constant expression. ... This is a common programming technique. ... Good programming practice would consist of using the compiler at ... One can write 'bool' in C++ but not C. ...
    (microsoft.public.vc.mfc)
  • Re: help needed please!
    ... But some compilers like to give you a warning ... Each warning a compiler can give you is important when you not ... but you may use flages to handle flags to handle flags when you ... >> stdout is line bufferd and until one or both of the following cases is ...
    (comp.lang.c)
  • Re: Overloading abstract methods
    ... I'm calling this abstract class ResumeWriter. ... > use of in each subclass is up to you. ... >> However, if I do that, I get compiler warnings that the parameters for ... Disable that warning. ...
    (comp.lang.java.programmer)
  • Re: Portability / compatibility issues
    ... I have posted my test code below, and the results I get on each compiler. ... The crux of the matter is that the 'strstr' function differs wildly in its behaviour on different platforms, and precious few man pages will actually provide a worked example of any function, let alone this one. ... I have had to write the "has_slash" function and use the reserved work SLASH already, to get around the problems that strstrgives me. ...
    (comp.lang.c)
  • Re: Why does this work?
    ... The compiler is able to tell the difference between the two by the context in which the word "color" is used. ... The point is that the compiler reads the original code as attempting to access a shared member of an instance. ... That's why the compiler is warning the programmer that it's not going to do what was coded. ...
    (microsoft.public.dotnet.languages.vb)