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.

Reply via email to