阅读背景:

为什么在强制转换const双索引参数时会得到-Wincompatible-pointer-types警告

来源:互联网 

Why does compiling the minimal test case C code below using gcc5 (5.3.0) generate a [-Wincompatible-pointer-types] warning for the warning() function call that has a const argument and casts that argument using the ConstMyDouble typedef, but not for the nowarning() call that does not use the ConstMyDouble cast, nor for the noconst() call that uses the non-const typedef MyDouble, and how can it be fixed?Why does compiling the minimal test case C code




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: