【发布时间】:2015-11-02 04:58:42
【问题描述】:
编译这个找到at the Gnome Wiki Vala Tutorial 的“hello world”示例会给我一个警告。
class Demo.HelloWorld : GLib.Object {
public static int main(string[] args) {
stdout.printf("Hello, World\n");
return 0;
}
}
/home/scooter3/code/vala/hello_world.vala.c:55:2: warning: ‘g_type_init’ is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:667) [-Wdeprecated-declarations]
g_type_init ();
我想修改程序或安装其他版本的 a lib 以消除警告。
【问题讨论】:
标签: compiler-warnings glib vala