After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 420339 - Warning about redundant declaration in glibmm/utility.h
Warning about redundant declaration in glibmm/utility.h
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: general
2.12.x
Other All
: Normal minor
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-03-19 23:25 UTC by btb
Modified: 2007-03-23 17:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
remove g_free prototype, include gmem.h instead (1004 bytes, patch)
2007-03-19 23:31 UTC, btb
none Details | Review

Description btb 2007-03-19 23:25:31 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:
Comment 1 btb 2007-03-19 23:31:03 UTC
Created attachment 84923 [details] [review]
remove g_free prototype, include gmem.h instead
Comment 2 Murray Cumming 2007-03-23 17:33:43 UTC
Committed to glibmm-2-12 and svn trunk.