Fix a (fatal) compiler warning
This commit is contained in:
parent
748422a3fb
commit
3edaab2dd1
27
0001-launcher-Don-t-pass-variable-as-format-string.patch
Normal file
27
0001-launcher-Don-t-pass-variable-as-format-string.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From dc780d2c4450385a2fba4df34be62e0bfc838c72 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
||||||
|
Date: Wed, 16 Sep 2015 17:38:10 +0200
|
||||||
|
Subject: [PATCH] launcher: Don't pass variable as format string
|
||||||
|
|
||||||
|
We know the variable only contains one or another string literal,
|
||||||
|
but keep compilers happy as well.
|
||||||
|
---
|
||||||
|
src/backends/native/meta-launcher.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/backends/native/meta-launcher.c b/src/backends/native/meta-launcher.c
|
||||||
|
index 5ceeda7..6fc4505 100644
|
||||||
|
--- a/src/backends/native/meta-launcher.c
|
||||||
|
+++ b/src/backends/native/meta-launcher.c
|
||||||
|
@@ -63,7 +63,7 @@ report_error_and_die (const char *prefix,
|
||||||
|
if (error)
|
||||||
|
g_error ("%s: %s", prefix, error->message);
|
||||||
|
else
|
||||||
|
- g_error (prefix);
|
||||||
|
+ g_error ("%s", prefix);
|
||||||
|
|
||||||
|
/* the error is not freed, but it is ok as g_error aborts the process */
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.5.0
|
||||||
|
|
@ -12,6 +12,8 @@ License: GPLv2+
|
|||||||
URL: http://www.gnome.org
|
URL: http://www.gnome.org
|
||||||
Source0: http://download.gnome.org/sources/%{name}/3.17/%{name}-%{version}.tar.xz
|
Source0: http://download.gnome.org/sources/%{name}/3.17/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
|
Patch1: 0001-launcher-Don-t-pass-variable-as-format-string.patch
|
||||||
|
|
||||||
BuildRequires: clutter-devel >= %{clutter_version}
|
BuildRequires: clutter-devel >= %{clutter_version}
|
||||||
BuildRequires: pango-devel
|
BuildRequires: pango-devel
|
||||||
BuildRequires: startup-notification-devel
|
BuildRequires: startup-notification-devel
|
||||||
@ -94,6 +96,7 @@ the functionality of the installed %{name} package.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1 -b fix-compiler-warning
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -f -i
|
autoreconf -f -i
|
||||||
|
Loading…
Reference in New Issue
Block a user