diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-08-28 22:16:34 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-08-28 22:17:02 +0100 |
commit | 9142bab7363095e538d1f24bed6ae32a9b1d5820 (patch) | |
tree | 58b37523ca906ea376139173de9a69b6ca7cb93f | |
parent | 026fb31d2df8faee43eedf2e45dfddf1425b80df (diff) | |
download | netsurf-9142bab7363095e538d1f24bed6ae32a9b1d5820.tar.gz netsurf-9142bab7363095e538d1f24bed6ae32a9b1d5820.tar.bz2 |
remove a warning on openbsd
-rw-r--r-- | frontends/gtk/corewindow.c | 2 | ||||
-rw-r--r-- | 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; |