Commit 0e063a5
committed
libvirt: silence inlining warning
We silence the following warning about inlining cleanup methods of the
glib:
libvirt> /nix/store/0784w06097k9i46zipgjf05l87i19jj0-glib-2.84.3-dev/include/glib-2.0/glib/gmacros.h:1342:43: warning: inlining failed in call to 'glib_autoptr_cleanup_virNetlinkMsg': call is unlikely and code size would grow [-Winline]
libvirt> 1342 | #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
libvirt> | ^~~~~~~~~~~~~~~~~~~~~
libvirt> /nix/store/0784w06097k9i46zipgjf05l87i19jj0-glib-2.84.3-dev/include/glib-2.0/glib/gmacros.h:1362:36: note: in expansion of macro '_GLIB_AUTOPTR_FUNC_NAME'
libvirt> 1362 | static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) \
libvirt> | ^~~~~~~~~~~~~~~~~~~~~~~
libvirt> /nix/store/0784w06097k9i46zipgjf05l87i19jj0-glib-2.84.3-dev/include/glib-2.0/glib/gmacros.h:1379:3: note: in expansion of macro '_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS'
libvirt> 1379 | _GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(TypeName, TypeName, func)
libvirt> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libvirt> ../src/util/virnetlink.h:31:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
libvirt> 31 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNetlinkMsg, nlmsg_free);
libvirt> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libvirt> ../src/util/virnetlink.c:791:30: note: called from here
libvirt> 791 | g_autoptr(virNetlinkMsg) nl_msg = NULL;
On-behalf-of: SAP stefan.kober@sap.com1 parent eb0d595 commit 0e063a5
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
| |||
0 commit comments