Amiga.org

Amiga computer related discussion => Amiga/MorphOS/AROS Programmers Forum => Topic started by: Minuous on November 19, 2014, 06:04:04 PM

Title: How to turn off GCC "incompatible pointer" warnings
Post by: Minuous on November 19, 2014, 06:04:04 PM
I'm getting a lot of these warnings when using GCC under OS4:

assignment from incompatible pointer type
passing argument of '' from incompatible pointer type

and want to know what GCC command line option will suppress them. Thanks.
Title: Re: How to turn off GCC "incompatible pointer" warnings
Post by: Thomas on November 20, 2014, 10:12:10 AM
That's a bad approach. You should rather fix the source code.
Title: Re: How to turn off GCC "incompatible pointer" warnings
Post by: Minuous on November 20, 2014, 10:58:14 AM
Or they should fix their compiler so it doesn't emit warnings for harmless scenarios; that's more the role of a lint tool. Speaking of which, what is the best Lint for OS4?