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

New compiler warnings #1063

Closed
marxin opened this issue Jul 26, 2023 · 0 comments
Closed

New compiler warnings #1063

marxin opened this issue Jul 26, 2023 · 0 comments

Comments

@marxin
Copy link
Contributor

marxin commented Jul 26, 2023

Just small issues:

[  228s] /home/abuild/rpmbuild/BUILD/mold-2.0.0/elf/arch-mips64.cc:467:1:   required from here
[  228s] /home/abuild/rpmbuild/BUILD/mold-2.0.0/elf/arch-mips64.cc:63:10: warning: variable 'check' set but not used [-Wunused-but-set-variable]
[  228s]    63 |     auto check = [&](i64 val, i64 lo, i64 hi) {
[  228s]       |          ^~~~~
[  228s] /home/abuild/rpmbuild/BUILD/mold-2.0.0/elf/arch-mips64.cc:108:9: warning: unused variable 'P' [-Wunused-variable]
[  228s]   108 |     u64 P = get_addr() + rel.r_offset;
[  228s]       |         ^
[  228s] /home/abuild/rpmbuild/BUILD/mold-2.0.0/elf/arch-mips64.cc:47:14: warning: variable 'dynrel' set but not used [-Wunused-but-set-variable]
[  228s]    47 |   ElfRel<E> *dynrel = nullptr;
[  228s]       |              ^~~~~~
[  228s] /home/abuild/rpmbuild/BUILD/mold-2.0.0/elf/arch-mips64.cc: In instantiation of 'void mold::elf::InputSection<E>::apply_reloc_alloc(mold::elf::Context<E>&, mold::u8*) [with E = mold::elf::MIPS64BE; mold::u8 = unsigned char]':
[  228s] /home/abuild/rpmbuild/BUILD/mold-2.0.0/elf/arch-mips64.cc:468:1:   required from here
[  228s] /home/abuild/rpmbuild/BUILD/mold-2.0.0/elf/arch-mips64.cc:63:10: warning: variable 'check' set but not used [-Wunused-but-set-variable]
[  228s]    63 |     auto check = [&](i64 val, i64 lo, i64 hi) {
[  228s]       |          ^~~~~
[  228s] /home/abuild/rpmbuild/BUILD/mold-2.0.0/elf/arch-mips64.cc:108:9: warning: unused variable 'P' [-Wunused-variable]
[  228s]   108 |     u64 P = get_addr() + rel.r_offset;
[  228s]       |         ^
[  228s] /home/abuild/rpmbuild/BUILD/mold-2.0.0/elf/arch-mips64.cc:47:14: warning: variable 'dynrel' set but not used [-Wunused-but-set-variable]
[  228s]    47 |   ElfRel<E> *dynrel = nullptr;
[  228s]       |              ^~~~~~
@rui314 rui314 closed this as completed in b78f237 Jul 28, 2023
VitalyAnkh pushed a commit to VitalyAnkh/mold that referenced this issue Dec 23, 2023
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