Determines whether warnings are issued for conversions between pointers to distinct scalar types with the same representation.
Default
| The compiler issues warnings for conversions between pointers to distinct scalar types with the same representation. |
Description
This option determines whether warnings are issued for conversions between pointers to distinct scalar types with the same representation.
For example, comparing the following example the compiler by default issues a warning due to conversion from pointer to int
to pointer to long
:
void f(int *p) { long *q = p; }
If long
and int
values have the same representation on the target platform, the warning will not be issued if the -Wno-ic-pointer
option is specified.
Parent topic: Alphabetical List of Compiler Options