Accepting request 1093673 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1093673 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openpgm?expand=0&rev=12
This commit is contained in:
commit
6d8930cc93
24
Mark-pgm_family_string-as-inline.patch
Normal file
24
Mark-pgm_family_string-as-inline.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Author: Luca Boccassi <bluca@debian.org>
|
||||||
|
Description: Mark pgm_family_string as 'inline'
|
||||||
|
Functions defined in headers need to be 'static inline', otherwise the compiler
|
||||||
|
will generate an unused-function warning for every program that includes the
|
||||||
|
header but doesn't use the function.
|
||||||
|
|
||||||
|
In file included from /usr/include/pgm-5.3/pgm/skbuff.h:39,
|
||||||
|
from /usr/include/pgm-5.3/pgm/msgv.h:33,
|
||||||
|
from /usr/include/pgm-5.3/pgm/pgm.h:44,
|
||||||
|
from src/ip.cpp:53:
|
||||||
|
/usr/include/pgm-5.3/pgm/socket.h:207:1: error: 'const char* pgm_family_string(int)' defined but not used [-Werror=unused-function]
|
||||||
|
207 | pgm_family_string (
|
||||||
|
| ^~~~~~~~~~~~~~~~~
|
||||||
|
--- pgm.orig/include/pgm/socket.h
|
||||||
|
+++ pgm/include/pgm/socket.h
|
||||||
|
@@ -202,7 +202,7 @@ int pgm_wsapoll_info (pgm_sock_t*const restrict, WSAPOLLFD*const restrict, ULONG
|
||||||
|
int pgm_epoll_ctl (pgm_sock_t*const, const int, const int, const int);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-static
|
||||||
|
+static inline
|
||||||
|
const char*
|
||||||
|
pgm_family_string (
|
||||||
|
const int family
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 18 13:50:39 UTC 2023 - bluca@debian.org
|
||||||
|
|
||||||
|
- Add Mark-pgm_family_string-as-inline.patch to fix building packages that
|
||||||
|
include the PGM headers without using pgm_family_string() by marking it
|
||||||
|
'inline' to avoid unused-function warnings. Sent upstream:
|
||||||
|
https://github.com/steve-o/openpgm/pull/74
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 7 13:11:24 UTC 2023 - pgajdos@suse.com
|
Wed Jun 7 13:11:24 UTC 2023 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -33,6 +33,8 @@ Group: Development/Libraries/C and C++
|
|||||||
URL: https://github.com/steve-o/openpgm
|
URL: https://github.com/steve-o/openpgm
|
||||||
Source: https://github.com/steve-o/openpgm/archive/release-%{tarball_version}.tar.gz#/openpgm-release-%{tarball_version}.tar.gz
|
Source: https://github.com/steve-o/openpgm/archive/release-%{tarball_version}.tar.gz#/openpgm-release-%{tarball_version}.tar.gz
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
|
# PATCH-FIX-UPSTREAM https://github.com/steve-o/openpgm/pull/74
|
||||||
|
Patch0: Mark-pgm_family_string-as-inline.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
Loading…
Reference in New Issue
Block a user