Skip to content
Snippets Groups Projects
  • Will Thompson's avatar
    016ea916
    errors: don't use 'static inline' on varargs functions · 016ea916
    Will Thompson authored
    This caused GCC 6.3.0 -Winline to complain:
    
        ../../../ext/libglnx/glnx-errors.h:169:1: warning: function
            ‘glnx_throw_errno_prefix’ can never be inlined because it uses
            variable argument lists [-Winline]
         glnx_throw_errno_prefix (GError **error, const char *fmt, ...)
         ^~~~~~~~~~~~~~~~~~~~~~~
        ../../../ext/libglnx/glnx-errors.h:169:1: warning: inlining failed
            in call to ‘glnx_throw_errno_prefix’: function not inlinable
            [-Winline]
    errors: don't use 'static inline' on varargs functions
    Will Thompson authored
    This caused GCC 6.3.0 -Winline to complain:
    
        ../../../ext/libglnx/glnx-errors.h:169:1: warning: function
            ‘glnx_throw_errno_prefix’ can never be inlined because it uses
            variable argument lists [-Winline]
         glnx_throw_errno_prefix (GError **error, const char *fmt, ...)
         ^~~~~~~~~~~~~~~~~~~~~~~
        ../../../ext/libglnx/glnx-errors.h:169:1: warning: inlining failed
            in call to ‘glnx_throw_errno_prefix’: function not inlinable
            [-Winline]