-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
1.4.2: compile time warnings #708
Comments
rui314
added a commit
that referenced
this issue
Sep 14, 2022
GCC prints out bunch of the following warnings when compiling mold. ``` macho/input-files.cc:717:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct mold::macho::MachSection'; use assignment or value-initialization instead [-Wclass-memaccess] 717 | memset(hdr, 0, sizeof(*hdr)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ``` This commit suppresses it by making our classes trivial. #708
rui314
added a commit
that referenced
this issue
Sep 14, 2022
rui314
added a commit
that referenced
this issue
Sep 14, 2022
rui314
added a commit
that referenced
this issue
Sep 14, 2022
All warnings should be fixed by now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First just summary stats:
In attachment are extracted all warnings mold_warnings.txt
The text was updated successfully, but these errors were encountered: