Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

warning C4114: same type qualifier used more than once

$
0
0

Hi All,

On migrating a VC++ 6.0 developed code to Visual studio 2008, I got this warning in the line below in my code.

constintconstCImportContext::PACKETSIZE =4096;

I know how to fix for pointer

staticconstintconst* PACKETSIZE;// C4114staticconstint*const PACKETSIZE;// Correct

But my question is how to fix this warning, if its like the one below(without pointer),

staticconstintconst PACKETSIZE;

Viewing all articles
Browse latest Browse all 15302

Trending Articles



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