[Vala] const char * for weak string yields GCC warnings.



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]