summaryrefslogtreecommitdiff
path: root/debian/patches/16fix_gcc_warnings.patch
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2011-10-05 02:05:15 +0200
committerAxel Beckert <abe@deuxchevaux.org>2011-10-05 02:07:10 +0200
commite70bbf027ea830a6a7c5520252fd79761d103107 (patch)
tree5372410b3f4f670f274d7bbd75900981bd13e540 /debian/patches/16fix_gcc_warnings.patch
parentc839f5ac104455836eff06f49ad371d0f2485806 (diff)
downloadscreen-e70bbf027ea830a6a7c5520252fd79761d103107.tar.gz
Convert to source format 3.0
Done with help of the deb3 script by Osamu Aoki.
Diffstat (limited to 'debian/patches/16fix_gcc_warnings.patch')
-rw-r--r--debian/patches/16fix_gcc_warnings.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/debian/patches/16fix_gcc_warnings.patch b/debian/patches/16fix_gcc_warnings.patch
new file mode 100644
index 0000000..726fe2f
--- /dev/null
+++ b/debian/patches/16fix_gcc_warnings.patch
@@ -0,0 +1,46 @@
+Author: <hesso@pool.math.tu-berlin.de>
+Description: Get rid of several minor gcc warnings.
+--- a/attacher.c
++++ b/attacher.c
+@@ -863,7 +863,7 @@
+ int pam_error;
+ char *tty_name;
+ #endif
+- char *pass, mypass[16 + 1], salt[3];
++ char *pass = 0, mypass[16 + 1], salt[3];
+ int using_pam = 1;
+
+ #ifdef USE_PAM
+--- a/layer.c
++++ b/layer.c
+@@ -492,7 +492,7 @@
+ void
+ LClearLine(l, y, xs, xe, bce, ol)
+ struct layer *l;
+-int xs, xe, bce;
++int y, xs, xe, bce;
+ struct mline *ol;
+ {
+ struct canvas *cv;
+--- a/process.c
++++ b/process.c
+@@ -3302,7 +3302,7 @@
+ int newnr, fl = 0, kf = 0, af = 0, df = 0, mf = 0;
+ struct display *odisp = display;
+ int used = 0;
+- struct kmap_ext *kme;
++ struct kmap_ext *kme = 0;
+
+ for (; *args && **args == '-'; args++, argl++)
+ {
+--- a/screen.c
++++ b/screen.c
+@@ -2534,7 +2534,7 @@
+ int truncpos = -1;
+ int truncper = 0;
+ int trunclong = 0;
+- struct backtick *bt;
++ struct backtick *bt = 0;
+
+ if (winmsg_numrend >= 0)
+ winmsg_numrend = 0;