Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with clang 10 on OpenBSD produces a few warnings #136

Open
omoerbeek opened this issue Aug 5, 2020 · 0 comments
Open

Compiling with clang 10 on OpenBSD produces a few warnings #136

omoerbeek opened this issue Aug 5, 2020 · 0 comments

Comments

@omoerbeek
Copy link
Contributor

rtcm.cc:9:10: warning: destination for this 'memset' call is a pointer to dynamic class 'GalileoMessage'; vtable
      pointer will be overwritten [-Wdynamic-class-memaccess]
  memset(&d_gm, 0, sizeof(d_gm));
  ~~~~~~ ^
rtcm.cc:9:10: note: explicitly cast the pointer to silence this warning
  memset(&d_gm, 0, sizeof(d_gm));
         ^
         (void*)

struct InfluxPusher
^
./navparse.hh:26:1: note: did you mean struct here?
class InfluxPusher;
^~~~~
struct

In file included from ubxtool.cc:36:
./nmmsender.hh:40:31: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
        d_thread.emplace_back(std::move(std::make_unique<std::thread>(&NMMSender::sendTCPThread, this, d.get())));
                              ^
./nmmsender.hh:40:31: note: remove std::move call here
        d_thread.emplace_back(std::move(std::make_unique<std::thread>(&NMMSender::sendTCPThread, this, d.get())));

./rinex.hh:37:10: warning: private field 'd_time' is not used [-Wunused-private-field]
  time_t d_time{0};

rinreport.cc:83:10: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
  return std::move(stat);
         ^
rinreport.cc:83:10: note: remove std::move call here
  return std::move(stat);
         ^~~~~~~~~~    ~

Sorry, no time to look at this now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant