[vcpkg] Fix warning (as error) when building vcpgk/toolsrc with clang++ 10 or g++ 9.3 (see #15148)#15149
[vcpkg] Fix warning (as error) when building vcpgk/toolsrc with clang++ 10 or g++ 9.3 (see #15148)#15149BillyONeal merged 6 commits intomicrosoft:masterfrom klalumiere:fix-15148
Conversation
|
Can you fix what the thing is warning about rather than silencing the warning? |
Yes I can. The reason I didn't do it to begin with is that the warning [1] is a little bit more subtle than the other two. In particular, there's (at least) two ways to fix the issue highlighted by it:
In principle, the way we choose to fix it should ultimately depends on the intent of the author of the code. In practice, it probably won't matter a lot. I thought the warning was pedantic (which is what we asked the compiler), so I choose the third option to silence it locally. I'll add a virtual destructor for now since this fix is "local" (if I choose the alternative, i.e. to make [1] |
|
I recompiled and re-ran the test with both clang++ 10 and g++ 9.3. Everything is green ✔️. |
|
Thanks for squashing those warnings! |
…++ 10 or g++ 9.3 (see microsoft#15148) (microsoft#15149)
…++ 10 or g++ 9.3 (see microsoft#15148) (microsoft#15149)
Describe the pull request
It now compiles (and then the tests succeed) with both clang++ 10 and g++ 9.3.
Which triplets are supported/not supported? Have you updated the CI baseline? Does not apply.
Does your PR follow the maintainer guide? Yes