gcc2 fixes: declare variables in beginning of block
This commit is contained in:
parent
cb7230b74c
commit
6fafc5823a
13
graphics/feh/patches/patch-src_slideshow_c
Normal file
13
graphics/feh/patches/patch-src_slideshow_c
Normal file
@ -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)
|
23
x11/evilwm/patches/patch-misc_c
Normal file
23
x11/evilwm/patches/patch-misc_c
Normal file
@ -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 */
|
Loading…
Reference in New Issue
Block a user