Ticket #3693: mc-3641-cleanup-no-attribute-noreturn-utilvfs.c.patch

File mc-3641-cleanup-no-attribute-noreturn-utilvfs.c.patch, 1005 bytes (added by andrew_b, 6 years ago)
  • lib/vfs/utilvfs.c

    From 6edb7f177e0a24a52189350468bc67a478f0d03a Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Sat, 17 Sep 2016 19:46:22 +0000
    Subject: [PATCH] (utilvfs.c)  Cleanup no attribute noreturn warning
    
    Cleanup -Wsuggest-attribute=noreturn warning.
    
    utilvfs.c: In function 'vfs_die':
    utilvfs.c:354:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
     vfs_die (const char *m)
     ^~~~~~~
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     lib/vfs/utilvfs.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/lib/vfs/utilvfs.c b/lib/vfs/utilvfs.c
    index 6b6ef38..2cf438e 100644
    a b vfs_url_split (const char *path, int default_port, vfs_url_flags_t flags) 
    350350 
    351351/* --------------------------------------------------------------------------------------------- */ 
    352352 
    353 void 
     353void __attribute__ ((noreturn)) 
    354354vfs_die (const char *m) 
    355355{ 
    356356    message (D_ERROR, _("Internal error:"), "%s", m);