Compilation of glib/demo uses a C compiler, thus compiler warnings should be enabled in the CFLAGS variable.