From 2983d978cfe3a3de29425b505f4ccb32506dd477dd5536280f4b1ac474e9132d Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 4 Jan 2007 11:11:20 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gpm?expand=0&rev=2 --- gpm-1.20.1-warnings.patch | 11 +++++++++++ gpm.changes | 6 ++++++ gpm.spec | 13 +++++++++---- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 gpm-1.20.1-warnings.patch diff --git a/gpm-1.20.1-warnings.patch b/gpm-1.20.1-warnings.patch new file mode 100644 index 0000000..6b628dd --- /dev/null +++ b/gpm-1.20.1-warnings.patch @@ -0,0 +1,11 @@ +--- src/twiddler.c ++++ src/twiddler.c +@@ -331,7 +331,7 @@ + int len = strlen(mod); + if (len == 0) return twiddler_map->table; + +- for (ptr = twiddler_map; ptr->table; ptr = ptr++) { ++ for (ptr = twiddler_map; ptr->table; ptr++) { + if (!strncasecmp(mod,ptr->keyword,len)) + return ptr->table; + } diff --git a/gpm.changes b/gpm.changes index b2542a7..ac220a0 100644 --- a/gpm.changes +++ b/gpm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 4 12:00:46 CET 2007 - anosek@suse.cz + +- fixed twiddler.c:334: warning: operation on 'ptr' may be + undefined (warnings.patch) + ------------------------------------------------------------------- Thu Feb 16 14:23:52 CET 2006 - mmarek@suse.cz diff --git a/gpm.spec b/gpm.spec index 1c60a82..d31bbe0 100644 --- a/gpm.spec +++ b/gpm.spec @@ -1,7 +1,7 @@ # # spec file for package gpm (Version 1.20.1) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -12,13 +12,13 @@ Name: gpm URL: http://linux.schottelius.org/gpm/ -License: GPL +License: GNU General Public License (GPL) Group: System/Console Provides: select PreReq: /bin/sed %insserv_prereq %fillup_prereq Autoreqprov: on Version: 1.20.1 -Release: 312 +Release: 341 Summary: Console Mouse Support Source0: http://arcana.linux.it/pub/gpm/gpm-%{version}.tar.bz2 Source1: rcgpm @@ -38,6 +38,7 @@ Patch10: gpm-%{version}-ceil.patch Patch11: gpm-%{version}-Gpm_Open.patch Patch12: gpm-%{version}-daemon_mode.patch Patch13: gpm-%{version}-gunze-overflow.patch +Patch14: gpm-%{version}-warnings.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %install_info_prereq @@ -70,6 +71,7 @@ Authors: %patch11 %patch12 %patch13 +%patch14 # cp %{S:1} %{S:2} %{S:3} . @@ -160,6 +162,9 @@ rm -rf $RPM_BUILD_ROOT /var/adm/fillup-templates/* %changelog -n gpm +* Thu Jan 04 2007 - anosek@suse.cz +- fixed twiddler.c:334: warning: operation on 'ptr' may be + undefined (warnings.patch) * Thu Feb 16 2006 - mmarek@suse.cz - merge rcgpm-error-messages.diff into rcgpm - hint users to run 'yast mouse' to configure gpm @@ -363,7 +368,7 @@ rm -rf $RPM_BUILD_ROOT * Thu Apr 12 2001 - pmladek@suse.cz - fixed init script by new skeleton - fixed to compile -- removed include $(DEPS) from makefile + - removed include $(DEPS) from makefile * Mon Jan 15 2001 - nadvornik@suse.cz - added Required-Start: $remote_fs $syslog [bug #5580] * Tue Jan 02 2001 - olh@suse.de