trivial fixes for clang

This commit is contained in:
espie 2017-05-02 15:18:31 +00:00
parent 9783b65405
commit fb0ade23ca
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_main-win_c,v 1.3 2017/05/02 15:18:31 espie Exp $
Index: src/main-win.c
--- src/main-win.c.orig
+++ src/main-win.c
@@ -378,7 +378,7 @@ gboolean main_win_open( MainWin* mw, const char* file_
image_list_sort_by_name( mw->img_list, GTK_SORT_DESCENDING );
if (image_list_get_first(mw->img_list))
main_win_open(mw, image_list_get_current_file_path(mw->img_list), zoom);
- return;
+ return FALSE;
}

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_ptk-menu_h,v 1.1 2017/05/02 15:18:31 espie Exp $
Index: src/ptk-menu.h
--- src/ptk-menu.h.orig
+++ src/ptk-menu.h
@@ -15,7 +15,7 @@
*/
#ifndef _PTK_MENU_H_
-#define _PTK_UTILS_H_
+#define _PTK_MENU_H_
#include <gtk/gtk.h>
#include <gdk/gdk.h>