[Vala] const char * for weak string yields GCC warnings.
- From: Feng Yu <rainwoodman gmail com>
- To: Vala-list <vala-list gnome org>
- Subject: [Vala] const char * for weak string yields GCC warnings.
- Date: Mon, 8 Jun 2009 14:32:02 -0400
Dear List,
This segment of code yields a GCC warning:
weak string outptr;
"123".to_double(out outptr);
parser/parser.c:363: warning: passing argument 2 of ‘strtod’ from incompatible pointer type
The reason is that weak string is compiled into 'const char*', which is different from strtod's prototype.
Should this be a Bug VALA or attribute to elsewhere?
Yu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]