Warnings during build

Bug #1617324 reported by Zygmunt Krynicki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd-glib
Fix Released
Medium
Unassigned

Bug Description

While building this package on Fedora I've noticed the following warning:

snapd-client.c: In function 'send_request':
/usr/include/glib-2.0/glib/gmacros.h:444:79: warning: 'authorization' may be used uninitialized in this function [-Wmaybe-uninitialized]
   static inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) { if (*_ptr) (func) (*_ptr); } \
                                                                               ^
snapd-client.c:245:28: note: 'authorization' was declared here
         g_autoptr(GString) authorization;
                            ^~~~~~~~~~~~~

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Looks like the Fedora compiler is being overly paranoid in this case but fixed to be consistent with other g_autoptr usage. Thanks!

Changed in snapd-glib:
status: New → Fix Committed
importance: Undecided → Medium
Changed in snapd-glib:
status: Fix Committed → Fix Released
milestone: none → 0.10
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.