public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/98369] New: Two new warnings from clang for gcc trunk build
@ 2020-12-18  8:52 dcb314 at hotmail dot com
  2020-12-18  8:52 ` [Bug c/98369] " dcb314 at hotmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2020-12-18  8:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98369

            Bug ID: 98369
           Summary: Two new warnings from clang for gcc trunk build
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

1.

trunk.git/gcc/cp/../../c++tools/resolver.cc:231:9: warning: moving a temporary
object prevents copy elision [-Wpessimizing-move]

Source code is

       file = std::move (GetCMIName (module));

2.

trunk.git/libcody/client.cc:124:5: warning: moving a temporary object prevents
copy elision [-Wpessimizing-move]

Source code is

    return Packet (Client::PC_ERROR,
                  std::move (words.size () == 2 ? words[1]
                             : u8"malformed error response"));

None, one or both of these two new warnings might be worth fixing.

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

* [Bug c/98369] Two new warnings from clang for gcc trunk build
  2020-12-18  8:52 [Bug c/98369] New: Two new warnings from clang for gcc trunk build dcb314 at hotmail dot com
@ 2020-12-18  8:52 ` dcb314 at hotmail dot com
  2020-12-18 12:44 ` nathan at gcc dot gnu.org
  2021-01-04 14:42 ` nathan at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2020-12-18  8:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98369

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu.org

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
New code from Nathan in both cases.

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

* [Bug c/98369] Two new warnings from clang for gcc trunk build
  2020-12-18  8:52 [Bug c/98369] New: Two new warnings from clang for gcc trunk build dcb314 at hotmail dot com
  2020-12-18  8:52 ` [Bug c/98369] " dcb314 at hotmail dot com
@ 2020-12-18 12:44 ` nathan at gcc dot gnu.org
  2021-01-04 14:42 ` nathan at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-18 12:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98369

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2020-12-18
     Ever confirmed|0                           |1
           Assignee|unassigned at gcc dot gnu.org      |nathan at gcc dot gnu.org

--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
yeah, I think I got a bit std::move-happy

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

* [Bug c/98369] Two new warnings from clang for gcc trunk build
  2020-12-18  8:52 [Bug c/98369] New: Two new warnings from clang for gcc trunk build dcb314 at hotmail dot com
  2020-12-18  8:52 ` [Bug c/98369] " dcb314 at hotmail dot com
  2020-12-18 12:44 ` nathan at gcc dot gnu.org
@ 2021-01-04 14:42 ` nathan at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-01-04 14:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98369

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed 6288183377a, thanks David

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

end of thread, other threads:[~2021-01-04 14:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18  8:52 [Bug c/98369] New: Two new warnings from clang for gcc trunk build dcb314 at hotmail dot com
2020-12-18  8:52 ` [Bug c/98369] " dcb314 at hotmail dot com
2020-12-18 12:44 ` nathan at gcc dot gnu.org
2021-01-04 14:42 ` nathan at gcc dot gnu.org

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