From 9142bab7363095e538d1f24bed6ae32a9b1d5820 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 28 Aug 2018 22:16:34 +0100 Subject: remove a warning on openbsd --- frontends/gtk/corewindow.c | 2 +- utils/filepath.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontends/gtk/corewindow.c b/frontends/gtk/corewindow.c index 6ca5d228f..4f05648ba 100644 --- a/frontends/gtk/corewindow.c +++ b/frontends/gtk/corewindow.c @@ -304,7 +304,7 @@ nsgtk_cw_motion_notify_event(GtkWidget *widget, */ static nserror nsgtk_cw_key(struct nsgtk_corewindow *nsgtk_cw, uint32_t nskey) { - double value; + double value = 0; GtkAdjustment *vscroll; GtkAdjustment *hscroll; GtkAdjustment *scroll = NULL; diff --git a/utils/filepath.c b/utils/filepath.c index 156ba2d75..ee5f107c9 100644 --- a/utils/filepath.c +++ b/utils/filepath.c @@ -142,7 +142,11 @@ char *filepath_find(char **respathv, const char *filename) } /* exported interface documented in filepath.h */ -char *filepath_sfinddef(char **respathv, char *filepath, const char *filename, const char *def) +char * +filepath_sfinddef(char **respathv, + char *filepath, + const char *filename, + const char *def) { char t[PATH_MAX]; char *ret; -- cgit v1.2.3