Subject: lib/37575: Warning causes build error in libssh, key.c
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <antiright@gmail.com>
List: netbsd-bugs
Date: 12/20/2007 18:10:01
>Number:         37575
>Category:       lib
>Synopsis:       Warning causes build error in libssh, key.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 20 18:10:01 +0000 2007
>Originator:     Jeffrey Bedard
>Release:        -current
>Organization:
University of Rhode Island
>Environment:
NetBSD mobile 4.99.42 NetBSD 4.99.42 (MOBILE) #7: Sun Dec 16 17:27:47 EST 2007  src@mobile:/opt/src/sys/arch/i386/compile/MOBILE i386
>Description:
Control reaches end of non-void function, line 174 in key.c.
This causes a build failure because of -Werror.
>How-To-Repeat:
Build libssh.  
>Fix:
--- key.c.orig  2007-12-20 12:03:58.000000000 -0500
+++ key.c       2007-12-20 12:05:55.000000000 -0500
@@ -171,6 +171,7 @@
        default:
                fatal("key_equal: bad key type %d", a->type);
        }
+       return -1;
 }
 
 u_char*