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

File mc-3641-cleanup-no-attribute-noreturn-utilunix.c.patch, 765 bytes (added by and, 8 years ago)
  • lib/utilunix.c

    From 4b46afebfb0d20b7e446466fa0212f35d2ab1642 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Sat, 17 Sep 2016 19:48:06 +0000
    Subject: [PATCH] (utilunix.c) Cleanup no attribute noreturn warning
    
    Cleanup -Wsuggest-attribute=noreturn warning.
    
    utilunix.c:360:1: error: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     lib/utilunix.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/lib/utilunix.c b/lib/utilunix.c
    index 4153bdd..de42179 100644
    a b save_stop_handler (void) 
    356356 * @param status exit code 
    357357 */ 
    358358 
    359 void 
     359void __attribute__ ((noreturn)) 
    360360my_exit (int status) 
    361361{ 
    362362    _exit (status);