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

Quite a few build warnings building recursor on Fedora rawhide #6660

Closed
rubenk opened this issue May 23, 2018 · 2 comments
Closed

Quite a few build warnings building recursor on Fedora rawhide #6660

rubenk opened this issue May 23, 2018 · 2 comments

Comments

@rubenk
Copy link
Contributor

rubenk commented May 23, 2018

  • Program: Recursor
  • Issue type: Bug report

Short description

Building the recursor on Fedora 28 generates quite a few build warnings like the following:

  CXX      dnssecinfra.o
dnsrecords.cc: In member function 'ComboAddress AAAARecordContent::getCA(int) const':
dnsrecords.cc:119:30: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'union ComboAddress'; use assignment or value-initialization instead [-Wclass-memaccess]
   memset(&ret, 0, sizeof(ret));
                              ^
In file included from dnsrecords.cc:27:
iputils.hh:85:7: note: 'union ComboAddress' declared here
 union ComboAddress {
       ^~~~~~~~~~~~

It's not a big issue, but the amount of warnings makes it hard to see the important ones.

Environment

  • Operating system: Fedora rawhide
  • Software version: recursor 4.1.3, g++ 8.1
  • Software source: tarball from powerdns.com
@pieterlexis
Copy link
Contributor

#6590 might need backporting

@omoerbeek
Copy link
Member

Merged and backported to 4.1

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

No branches or pull requests

4 participants