Welcome, Guest. Please login or register.

Author Topic: How to turn off GCC "incompatible pointer" warnings  (Read 1594 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MinuousTopic starter

How to turn off GCC "incompatible pointer" warnings
« 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.
« Last Edit: November 19, 2014, 07:45:40 PM by Minuous »
 

Offline Thomas

Re: How to turn off GCC "incompatible pointer" warnings
« Reply #1 on: November 20, 2014, 10:12:10 AM »
That's a bad approach. You should rather fix the source code.

Offline MinuousTopic starter

Re: How to turn off GCC "incompatible pointer" warnings
« Reply #2 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?
« Last Edit: November 20, 2014, 07:26:05 PM by Minuous »