[nautilus] Fix compiler warning



commit 2f0a9546b24a4a66baf8074cb12af6ab157f23d2
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Wed Aug 31 16:44:08 2016 +0200

    Fix compiler warning
    
    The final return should not be reachable - but there is no way for
    the compiler to know
    
    Just return 0 as last fallback
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770652

 data/lineup-parameters.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/data/lineup-parameters.c b/data/lineup-parameters.c
index c1db2a7..610cafe 100644
--- a/data/lineup-parameters.c
+++ b/data/lineup-parameters.c
@@ -238,6 +238,8 @@ get_function_declaration_length (gchar **lines)
       nb_lines++;
       cur_line++;
     }
+  /* should not be reachable - but silences a compiler warning */
+  return 0;
 }
 
 static GSList *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]