Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package openpgm for openSUSE:Factory checked 
in at 2023-06-19 22:50:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openpgm (Old)
 and      /work/SRC/openSUSE:Factory/.openpgm.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openpgm"

Mon Jun 19 22:50:07 2023 rev:12 rq:1093673 version:5.3.128

Changes:
--------
--- /work/SRC/openSUSE:Factory/openpgm/openpgm.changes  2023-06-09 
20:38:02.306763539 +0200
+++ /work/SRC/openSUSE:Factory/.openpgm.new.15902/openpgm.changes       
2023-06-19 22:50:14.369448702 +0200
@@ -1,0 +2,8 @@
+Sun Jun 18 13:50:39 UTC 2023 - [email protected]
+
+- 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
+
+-------------------------------------------------------------------

New:
----
  Mark-pgm_family_string-as-inline.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ openpgm.spec ++++++
--- /var/tmp/diff_new_pack.MJNyUs/_old  2023-06-19 22:50:15.005452426 +0200
+++ /var/tmp/diff_new_pack.MJNyUs/_new  2023-06-19 22:50:15.009452450 +0200
@@ -33,6 +33,8 @@
 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
 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:  automake
 BuildRequires:  gcc-c++

++++++ Mark-pgm_family_string-as-inline.patch ++++++
Author: Luca Boccassi <[email protected]>
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

Reply via email to