Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22093

Why does passing char** as const char** generate a warning?

$
0
0

I've been getting this warning:

note: expected ‘const char **’ but argument is of type ‘char **’

For now, I'm passing the arguments by casting them to const char **. Is there any other way I can get rid of it?


Viewing all articles
Browse latest Browse all 22093

Trending Articles



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