GNOME Bugzilla – Bug 420339
Warning about redundant declaration in glibmm/utility.h
Last modified: 2007-03-23 17:33:43 UTC
Please describe the problem: Compiling applications with -Wredundant-decls enabled results in a warning. Steps to reproduce: 1. cd examples/markup 2. make clean 3. make CXXFLAGS=-Wredundant-decls Actual results: ../../glib/glibmm/utility.h:29: warning: redundant redeclaration of `void g_free(void*)' in same scope /usr/include/glib-2.0/glib/gmem.h:51: warning: previous declaration of `void g_free(void*)' Expected results: compile without warnings Does this happen every time? yes Other information:
Created attachment 84923 [details] [review] remove g_free prototype, include gmem.h instead
Committed to glibmm-2-12 and svn trunk.