diff options
author | dholland <dholland@pkgsrc.org> | 2012-05-10 20:53:30 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2012-05-10 20:53:30 +0000 |
commit | 98694964c87a5c1a0684277de03182cdfb60194e (patch) | |
tree | 979ae08520f7990d5a8e7a6307923591237f24c9 /editors/uemacs/patches/patch-src_undo_c | |
parent | acab9fed5d99de41c524ba9a07779d20fb763c66 (diff) | |
download | pkgsrc-98694964c87a5c1a0684277de03182cdfb60194e.tar.gz |
Pass -Wall. Fix a number of minor bugs and possibly some major ones.
Should also fix clang build. PKGREVISION++
Diffstat (limited to 'editors/uemacs/patches/patch-src_undo_c')
-rw-r--r-- | editors/uemacs/patches/patch-src_undo_c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/editors/uemacs/patches/patch-src_undo_c b/editors/uemacs/patches/patch-src_undo_c new file mode 100644 index 00000000000..6df11eed3fd --- /dev/null +++ b/editors/uemacs/patches/patch-src_undo_c @@ -0,0 +1,33 @@ +$NetBSD: patch-src_undo_c,v 1.1 2012/05/10 20:53:30 dholland Exp $ + +- don't use implicit int +- return values from non-void functions on unreachable paths + +--- src/undo.c~ 2012-05-10 19:25:36.000000000 +0000 ++++ src/undo.c +@@ -263,7 +263,7 @@ int f,n; /* prefix flag and argument */ + return(wpopup(ulistp)); + } + +-PASCAL NEAR undolist() ++int PASCAL NEAR undolist() + + { + register char *cp1; /* scanning pointer into line to build */ +@@ -448,6 +448,8 @@ nextbuf: bp = getoldb(); + lp->next = (UNDO_OBJ *)NULL; + bp->undo_count--; + } ++ /* notreached */ ++ return NULL; + } + + /* RE-ROOM: Allocate memory using realloc() +@@ -511,5 +513,7 @@ nxtbuf: bp = getoldb(); + lp->next = (UNDO_OBJ *)NULL; + bp->undo_count--; + } ++ /* notreached */ ++ return NULL; + } + |