From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 46C60394741A; Thu, 27 Jan 2022 14:07:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46C60394741A From: "mliska at suse dot cz" To: systemtap@sourceware.org Subject: [Bug runtime/28830] New: GCC 12 warnings Date: Thu, 27 Jan 2022 14:07:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mliska at suse dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2022 14:07:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28830 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 =3D int; _Result =3D in= t]' is deprecated: use 'std::function' instead [-Werror=3Ddeprecated-declarations] [ 49s] 1699 | std::not1(std::ptr_fun(std::isspace)))); [ 49s] |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ [ 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 =3D pointer_to_unary_function= ]' is deprecated: use 'std::not_fn' instead [-Werror=3Ddeprecated-declarations] [ 49s] 1699 | std::not1(std::ptr_fun(std::isspace)))); [ 49s] |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 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 =3D int; _Result =3D in= t]' is deprecated: use 'std::function' instead [-Werror=3Ddeprecated-declarations] [ 49s] 1707 | std::not1(std::ptr_fun(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] | ^~~~~~~ --=20 You are receiving this mail because: You are the assignee for the bug.=