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

[llvm-ml] Unused function causing warnings with gcc 10.1.1 #46107

Closed
ericastor opened this issue Jul 17, 2020 · 5 comments
Closed

[llvm-ml] Unused function causing warnings with gcc 10.1.1 #46107

ericastor opened this issue Jul 17, 2020 · 5 comments
Labels
bugzilla Issues migrated from bugzilla

Comments

@ericastor
Copy link
Contributor

Bugzilla Link 46763
Resolution FIXED
Resolved on Jul 20, 2020 06:53
Version 11.0
OS All
Blocks #46070
CC @dwblaikie,@ericastor,@zmodem,@slacka
Fixed by commit(s) 47a3b85

Extended Description

Email from Luke Benes:

After bc8e262afe83
[ms] [llvm-ml] Add initial MASM STRUCT/UNION support

With gcc 10.1, I'm seeing:

[ 21%] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/MasmParser.cpp.o
/llvm/lib/MC/MCParser/MasmParser.cpp:3836:6: warning: ‘bool {anonymous}::MasmParser::emitStructValue(const {anonymous}::StructInfo&)’ defined but not used [-Wunused-function]
3836 | bool MasmParser::emitStructValue(const StructInfo &Structure) {
| ^~~~~~~~~~

Could you please take a look at it and backport any fix to 11.x?

This is in fact an unused function, and we should eliminate the warning.

@ericastor
Copy link
Contributor Author

To fix this in the 11.0 release, we should just need to merge commit:
47a3b85

@dwblaikie
Copy link
Collaborator

FWIW, you really don't have to file bugs for things like this (& probably best not to - adds noise to the bug database/people triaging bugs/etc) - commits don't require bugs to justify them & can be explained directly in the commit message.

@ericastor
Copy link
Contributor Author

This was not filed to explain the commit, but to mark this as release-blocking due to Luke's request.

@dwblaikie
Copy link
Collaborator

This was not filed to explain the commit, but to mark this as
release-blocking due to Luke's request.

Oh, thanks - good to understand!

@zmodem
Copy link
Collaborator

zmodem commented Jul 20, 2020

To fix this in the 11.0 release, we should just need to merge commit:
47a3b85

Pushed to 11.x as c467be7. Thanks!

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

3 participants