From: "mliska at suse dot cz" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug runtime/28830] New: GCC 12 warnings
Date: Thu, 27 Jan 2022 14:07:38 +0000 [thread overview]
Message-ID: <bug-28830-6586@http.sourceware.org/bugzilla/> (raw)
https://sourceware.org/bugzilla/show_bug.cgi?id=28830
Bug ID: 28830
Summary: GCC 12 warnings
Product: systemtap
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: runtime
Assignee: systemtap at sourceware dot org
Reporter: mliska at suse dot cz
Target Milestone: ---
I see new GCC 12 warnings:
[ 49s] util.cxx: In function 'void ltrim(std::string&)':
[ 49s] util.cxx:1699:56: error: 'std::pointer_to_unary_function<_Arg,
_Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int]' is
deprecated: use 'std::function' instead [-Werror=deprecated-declarations]
[ 49s] 1699 | std::not1(std::ptr_fun<int,
int>(std::isspace))));
[ 49s] |
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
[ 49s] In file included from /usr/include/c++/12/string:48,
[ 49s] from util.h:8,
[ 49s] from util.cxx:17:
[ 49s] /usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here
[ 49s] 1126 | ptr_fun(_Result (*__x)(_Arg))
[ 49s] | ^~~~~~~
[ 49s] util.cxx:1699:33: error: 'constexpr std::unary_negate<_Predicate>
std::not1(const _Predicate&) [with _Predicate = pointer_to_unary_function<int,
int>]' is deprecated: use 'std::not_fn' instead
[-Werror=deprecated-declarations]
[ 49s] 1699 | std::not1(std::ptr_fun<int,
int>(std::isspace))));
[ 49s] |
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 49s] /usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here
[ 49s] 1046 | not1(const _Predicate& __pred)
[ 49s] | ^~~~
[ 49s] util.cxx: In function 'void rtrim(std::string&)':
[ 49s] util.cxx:1707:43: error: 'std::pointer_to_unary_function<_Arg,
_Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int]' is
deprecated: use 'std::function' instead [-Werror=deprecated-declarations]
[ 49s] 1707 | std::not1(std::ptr_fun<int,
int>(std::isspace))).base(), s.end());
[ 49s] | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
[ 49s] /usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here
[ 49s] 1126 | ptr_fun(_Result (*__x)(_Arg))
[ 49s] | ^~~~~~~
--
You are receiving this mail because:
You are the assignee for the bug.
next reply other threads:[~2022-01-27 14:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-27 14:07 mliska at suse dot cz [this message]
2022-01-28 17:46 ` [Bug runtime/28830] " fche at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-28830-6586@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).