Quantcast
Channel: Intel® C++-Compiler
Viewing all articles
Browse latest Browse all 1665

Wic-pointer

$
0
0

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

Architectures

IA-32, Intel® 64 architectures

Syntax

-W[no-]ic-pointer

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, 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.


Viewing all articles
Browse latest Browse all 1665

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>