On s390/x and PPC64 gcc misses unused arg0
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=46
This commit is contained in:
parent
605a52cae9
commit
c53fe95a8d
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 2 15:02:35 UTC 2021 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
- Add upstream patch fcb9e0c2.patch
|
||||||
|
* On s390/x and PPC64 gcc misses unused arg0
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 2 13:11:05 UTC 2021 - Dr. Werner Fink <werner@suse.de>
|
Thu Dec 2 13:11:05 UTC 2021 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ Group: System/Base
|
|||||||
URL: https://github.com/bitstreamout/showconsole
|
URL: https://github.com/bitstreamout/showconsole
|
||||||
Source: https://github.com/bitstreamout/showconsole/archive/v%{version}.tar.gz#/showconsole-%{version}.tar.gz
|
Source: https://github.com/bitstreamout/showconsole/archive/v%{version}.tar.gz#/showconsole-%{version}.tar.gz
|
||||||
Source1: blog-rpmlintrc
|
Source1: blog-rpmlintrc
|
||||||
|
Patch0: fcb9e0c2.patch
|
||||||
BuildRequires: suse-module-tools
|
BuildRequires: suse-module-tools
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
Requires(post): coreutils
|
Requires(post): coreutils
|
||||||
@ -81,6 +82,7 @@ the LSB startproc command.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n showconsole-%version
|
%setup -q -n showconsole-%version
|
||||||
|
%patch0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} CC="%__cc" \
|
make %{?_smp_mflags} CC="%__cc" \
|
||||||
|
32
fcb9e0c2.patch
Normal file
32
fcb9e0c2.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From fcb9e0c20bc4fee9152f58a6746334f6f1bbe9b1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Werner Fink <werner@suse.de>
|
||||||
|
Date: Thu, 2 Dec 2021 15:59:55 +0100
|
||||||
|
Subject: [PATCH] On s390/x and PPC64 gcc misses unused arg0
|
||||||
|
|
||||||
|
Signed-off-by: Werner Fink <werner@suse.de>
|
||||||
|
---
|
||||||
|
blogger.c | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git blogger.c blogger.c
|
||||||
|
index d1e1ae2..ce2b9ee 100644
|
||||||
|
--- blogger.c
|
||||||
|
+++ blogger.c
|
||||||
|
@@ -17,10 +17,14 @@
|
||||||
|
#include <unistd.h>
|
||||||
|
#include "libblogger.h"
|
||||||
|
|
||||||
|
+volatile char *arg0;
|
||||||
|
+
|
||||||
|
int main(int argc, char * argv[])
|
||||||
|
{
|
||||||
|
int c, lvl = 'n';
|
||||||
|
|
||||||
|
+ arg0 = (volatile char*)argv[0];
|
||||||
|
+
|
||||||
|
while ((c = getopt(argc, argv, "ndfsu")) != -1) {
|
||||||
|
switch (c) {
|
||||||
|
case B_NOTICE:
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user