From 6fafc5823a0dcf8a8947debc5b9f7171f9161823 Mon Sep 17 00:00:00 2001 From: pvalchev Date: Tue, 20 Dec 2005 06:05:03 +0000 Subject: [PATCH] gcc2 fixes: declare variables in beginning of block --- graphics/feh/patches/patch-src_slideshow_c | 13 ++++++++++++ x11/evilwm/patches/patch-misc_c | 23 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 graphics/feh/patches/patch-src_slideshow_c create mode 100644 x11/evilwm/patches/patch-misc_c diff --git a/graphics/feh/patches/patch-src_slideshow_c b/graphics/feh/patches/patch-src_slideshow_c new file mode 100644 index 00000000000..be0fcfc6a65 --- /dev/null +++ b/graphics/feh/patches/patch-src_slideshow_c @@ -0,0 +1,13 @@ +$OpenBSD: patch-src_slideshow_c,v 1.1 2005/12/20 06:08:17 pvalchev Exp $ +--- src/slideshow.c.orig Mon Dec 19 22:28:52 2005 ++++ src/slideshow.c Mon Dec 19 22:29:04 2005 +@@ -353,8 +353,8 @@ feh_action_run(feh_file * file, char *ac + D_ENTER(4); + if (action) + { +- D(3, ("Running action %s\n", action)); + char *sys; ++ D(3, ("Running action %s\n", action)); + sys = feh_printf(action, file); + + if (opt.verbose && !opt.list && !opt.customlist) diff --git a/x11/evilwm/patches/patch-misc_c b/x11/evilwm/patches/patch-misc_c new file mode 100644 index 00000000000..227e8588ec4 --- /dev/null +++ b/x11/evilwm/patches/patch-misc_c @@ -0,0 +1,23 @@ +$OpenBSD: patch-misc_c,v 1.1 2005/12/20 06:05:03 pvalchev Exp $ +--- misc.c.orig Mon Dec 19 22:26:02 2005 ++++ misc.c Mon Dec 19 22:26:48 2005 +@@ -34,8 +34,8 @@ void spawn(const char *const cmd[]) { + } + + void handle_signal(int signo) { +- (void)signo; /* unused */ + int i; ++ (void)signo; /* unused */ + /* SIGCHLD check no longer necessary */ + /* Quit Nicely */ + quitting = 1; +@@ -52,8 +52,8 @@ void handle_signal(int signo) { + } + + int handle_xerror(Display *dsply, XErrorEvent *e) { +- (void)dsply; /* unused */ + Client *c = find_client(e->resourceid); ++ (void)dsply; /* unused */ + + /* If this error actually occurred while setting up the new + * window, best let make_new_client() know not to bother */