I've recently moved from MSVC 2010 compiler to MinGW 4.9.1. I've changed everything I needed in my app, fixed all warnings except this one:
|
deprecated conversion from string constant to 'char*'
|
When I was using MSVC I had no warnings of this kind.
This is the part of code that gives the warning:
|
if (pcap_findalldevs_ex(PCAP_SRC_IF_STRING, NULL, alldevs, errbuf) == -1)
|
errbuf is declared this way:
|
char errbuf[PCAP_ERRBUF_SIZE];
|
I've already tried a few solutions like the ones from here -
http://en.wikibooks.org/wiki/GCC_Debugging/g%2B%2B/Warnings/deprecated_conversion_from_string_constant but none of them worked.
Last edited on
Unfortunately that didn't work either, still same warning.
Thanks, that fixed the warning.
Last edited on