Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public
Document Table of Contents

Wic-pointer

Determines whether warnings are issued for conversions between pointers to distinct scalar types with the same representation.

Syntax

Linux and macOS:

-Wic-pointer

-Wno-ic-pointer

Windows:

None

Arguments

None

Default

-Wic-pointer

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, consider the following:

void f(int *p) { long *q = p; }

In this case, by default, the compiler issues a warning because of the conversion from pointer to int to pointer to long.

However, if you specify -Wno-ic-pointer, and long and int values have the same representation on the target platform, the warning will not be issued.

IDE Equivalent

None

Alternate Options

None