GNOME Bugzilla – Bug 708162
Build fails with "error: typedef 'GUPnPNetworkManager' locally defined but not used [-Werror=unused-local-typedefs]"
Last modified: 2013-09-17 08:10:17 UTC
Moving the #include lines out of function scope and back to the global scope makes GCC happier.
Created attachment 255032 [details] [review] Fix GCC warnings about unused typedefs for local includes GCC was complaining with the following error: error: typedef 'GUPnPNetworkManager' locally defined but not used [-Werror=unused-local-typedefs] Move the #include lines to the global scope to make it happy. Alos use #ifdef/#if defined() consistently, instead of relying on the defined values.
Review of attachment 255032 [details] [review]: yeah, makes sense
The following fix has been pushed: f16a62e Fix GCC warnings about unused typedefs for local includes