Fix -Wreserved-user-defined-literal warnings
These were preventing the package from being built with clang.
This commit is contained in:
parent
b38a5e04f7
commit
a8b5a04978
22
pegasus-2.14.1-fix-Wreserved-user-defined-literal.patch
Normal file
22
pegasus-2.14.1-fix-Wreserved-user-defined-literal.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- pegasus/src/Pegasus/Common/InternalException.cpp.orig 2020-03-25 04:14:59.507215411 +0000
|
||||
+++ pegasus/src/Pegasus/Common/InternalException.cpp 2020-03-25 04:06:31.545770255 +0000
|
||||
@@ -982,7 +982,7 @@ SocketWriteError::~SocketWriteError()
|
||||
// PEGASUS_MAXELEMENTS_NUM HTTP header fields in a single HTTP message
|
||||
//==============================================================================
|
||||
TooManyHTTPHeadersException::TooManyHTTPHeadersException()
|
||||
- : Exception("more than "PEGASUS_MAXELEMENTS
|
||||
+ : Exception("more than " PEGASUS_MAXELEMENTS
|
||||
" header fields detected in HTTP message")
|
||||
{
|
||||
}
|
||||
--- pegasus/src/Pegasus/Client/tests/slp/slpclient.cpp.orig 2020-03-25 04:21:46.078970915 +0000
|
||||
+++ pegasus/src/Pegasus/Client/tests/slp/slpclient.cpp 2020-03-25 04:22:16.302878401 +0000
|
||||
@@ -49,7 +49,7 @@ int main(int argc, char** argv)
|
||||
|
||||
Array<Attribute> criteria;
|
||||
Attribute attr(
|
||||
- PEG_WBEM_SLP_SERVICE_ID"="PEG_WBEM_SLP_SERVICE_ID_DEFAULT);
|
||||
+ PEG_WBEM_SLP_SERVICE_ID"=" PEG_WBEM_SLP_SERVICE_ID_DEFAULT);
|
||||
Array<CIMServerDescription> connections;
|
||||
SLPClientOptions* opts = (SLPClientOptions*)NULL;
|
||||
if (argc == 2)
|
@ -8,7 +8,7 @@
|
||||
|
||||
Name: tog-pegasus
|
||||
Version: %{major_ver}.1
|
||||
Release: 51%{?dist}
|
||||
Release: 52%{?dist}
|
||||
Epoch: 2
|
||||
Summary: OpenPegasus WBEM Services for Linux
|
||||
|
||||
@ -97,6 +97,8 @@ Patch40: pegasus-2.14.1-tesid.patch
|
||||
Patch41: pegasus-2.14.1-ssl-cert-path.patch
|
||||
# 42: port to openssl-1.1
|
||||
Patch42: pegasus-2.14.1-openssl-1.1-fix.patch
|
||||
# 43: fix -Wreserved-user-defined-literal warnings which prevents building with clang
|
||||
Patch43: pegasus-2.14.1-fix-Wreserved-user-defined-literal.patch
|
||||
|
||||
BuildRequires: procps, libstdc++, pam-devel
|
||||
BuildRequires: openssl, openssl-devel
|
||||
@ -247,6 +249,7 @@ yes | mak/CreateDmtfSchema 238 %{SOURCE9} cim_schema_2.38.0
|
||||
%patch40 -p1 -b .testid
|
||||
%patch41 -p1 -b .ssl-cert-path
|
||||
%patch42 -p1 -b .openssl-1.1-fix
|
||||
%patch43 -p1 -b .Wreserved-user-defined-literal-fix
|
||||
|
||||
|
||||
%build
|
||||
@ -548,6 +551,9 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Mar 25 2020 Tom Stellard <tstellar@redhat.com> - 2:2.14.1-52
|
||||
- Fix -Wreserved-user-defined-literal warnings
|
||||
|
||||
* Thu Feb 27 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.14.1-51
|
||||
- Fix tmpfiles path
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user