[asterisk-dev] 0006883: [patch] Silent some compiler warnings
Andrey S. Pankov
casper at casper.org.ua
Thu Apr 6 17:03:01 MST 2006
Hi,
There are warnings when compiling func_odbc:
warning: passing arg 1 of `asprintf' from incompatible pointer type
I tried gcc 3.4.5 and 3.3.6. Corydon says that gcc 4 "handles this
without a warning."
The proposed solution is to cast the 1st argument to (char **).
Is this "a bug in the old version of gcc"? Any thoughts? Thanks.
Regards,
casper
More information about the asterisk-dev
mailing list