diff --git a/U_xset_fix-warning-about-usage-format-string.patch b/U_xset_fix-warning-about-usage-format-string.patch new file mode 100644 index 0000000..4eb4b68 --- /dev/null +++ b/U_xset_fix-warning-about-usage-format-string.patch @@ -0,0 +1,24 @@ +From c3ce2c28deac121db0de50af63c902e5883fe140 Mon Sep 17 00:00:00 2001 +From: Matthieu Herrb +Date: Sat, 17 Aug 2013 18:25:49 +0200 +Subject: Fix one last warning about usage() format string. + +Signed-off-by: Matthieu Herrb +Reviewed-by: Alan Coopersmith + +diff --git a/xset.c b/xset.c +index f461d4b..98f552f 100644 +--- a/xset.c ++++ b/xset.c +@@ -325,8 +325,7 @@ main(int argc, char *argv[]) + usage("low-mark must be greater than 0"); + } + if (himark <= lowmark) { +- usage("hi-mark must be greater than low-mark", +- NULL); ++ usage("hi-mark must be greater than low-mark"); + } + if (i >= argc) { + set_font_cache(dpy, himark, lowmark, balance); +-- +cgit v0.10.2 diff --git a/xset.changes b/xset.changes index 50211bb..0a77c09 100644 --- a/xset.changes +++ b/xset.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 20 23:27:49 UTC 2017 - zaitor@opensuse.org + +- Add U_xset_fix-warning-about-usage-format-string.patch: Fix one + last warning about usage() format string. + ------------------------------------------------------------------- Sat Aug 17 18:03:55 UTC 2013 - zaitor@opensuse.org diff --git a/xset.spec b/xset.spec index 1461d53..b9257d2 100644 --- a/xset.spec +++ b/xset.spec @@ -1,7 +1,7 @@ # # spec file for package xset # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,7 @@ License: MIT Group: System/X11/Utilities Url: http://xorg.freedesktop.org/ Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2 +Patch0: U_xset_fix-warning-about-usage-format-string.patch BuildRequires: pkg-config BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) @@ -42,6 +43,7 @@ display. %prep %setup -q +%patch0 -p1 %build %configure