Fixed: navit.c: In function 'navit_add_layout':
authorworldcitizen <worldcitizen@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 15 Mar 2011 18:34:31 +0000 (18:34 +0000)
committerworldcitizen <worldcitizen@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 15 Mar 2011 18:34:31 +0000 (18:34 +0000)
navit.c:2253:1: warning: no return statement in function returning non-void

git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4349 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c

index 50825e8..e2d0574 100644 (file)
@@ -2250,6 +2250,7 @@ navit_add_layout(struct navit *this_, struct layout *layout)
        layout_get_attr(layout, attr_active, &active, NULL);
        if(active.u.num || !this_->layout_current) 
                this_->layout_current=layout;
+       return 1;
 }
 
 int