public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/28830] New: GCC 12 warnings
@ 2022-01-27 14:07 mliska at suse dot cz
  2022-01-28 17:46 ` [Bug runtime/28830] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: mliska at suse dot cz @ 2022-01-27 14:07 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug runtime/28830] GCC 12 warnings
  2022-01-27 14:07 [Bug runtime/28830] New: GCC 12 warnings mliska at suse dot cz
@ 2022-01-28 17:46 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2022-01-28 17:46 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=28830

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |fche at redhat dot com
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
The ptr_fun related g++ warnings were corrected recently.
commit f199d1982ef8
commit 56c498d95

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-28 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27 14:07 [Bug runtime/28830] New: GCC 12 warnings mliska at suse dot cz
2022-01-28 17:46 ` [Bug runtime/28830] " fche at redhat dot com

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).