r9387 - in packages/trunk/cookietool/debian: . patches

Peter Pentchev roam-guest at alioth.debian.org
Fri Apr 3 15:08:05 UTC 2009


Author: roam-guest
Date: 2009-04-03 15:08:05 +0000 (Fri, 03 Apr 2009)
New Revision: 9387

Added:
   packages/trunk/cookietool/debian/patches/04-compiler-warnings.patch
Modified:
   packages/trunk/cookietool/debian/changelog
   packages/trunk/cookietool/debian/patches/series
Log:
Fix enough compiler warnings to allow a -Werror build without any
additional -W* flags.


Modified: packages/trunk/cookietool/debian/changelog
===================================================================
--- packages/trunk/cookietool/debian/changelog	2009-04-03 15:00:08 UTC (rev 9386)
+++ packages/trunk/cookietool/debian/changelog	2009-04-03 15:08:05 UTC (rev 9387)
@@ -22,6 +22,8 @@
     - add a Homepage field pointing to cookietool.readme on the FTP site
   * Remove some cruft from the rules file.
   * Build with -Werror if the "werror" build option is specified.
+  * Fix some compiler warnings:
+    - include the proper header files for the system function prototypes
 
  -- Peter Pentchev <roam at ringlet.net>  Fri, 03 Apr 2009 16:18:42 +0300
 

Added: packages/trunk/cookietool/debian/patches/04-compiler-warnings.patch
===================================================================
--- packages/trunk/cookietool/debian/patches/04-compiler-warnings.patch	                        (rev 0)
+++ packages/trunk/cookietool/debian/patches/04-compiler-warnings.patch	2009-04-03 15:08:05 UTC (rev 9387)
@@ -0,0 +1,13 @@
+Fix some compiler warnings:
+- include <stdlib.h> for the exit(3) prototype
+
+--- a/cookio.c
++++ b/cookio.c
+@@ -27,6 +27,7 @@
+ 
+ #include <stddef.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include "cookio.h"
+ 

Modified: packages/trunk/cookietool/debian/patches/series
===================================================================
--- packages/trunk/cookietool/debian/patches/series	2009-04-03 15:00:08 UTC (rev 9386)
+++ packages/trunk/cookietool/debian/patches/series	2009-04-03 15:08:05 UTC (rev 9387)
@@ -1,3 +1,4 @@
 01-manpage-typos.patch
 02-gcc-4-ftbfs.patch
 03-compiler-flags.patch
+04-compiler-warnings.patch




More information about the Pkg-games-commits mailing list