Closed kanavin closed 7 months ago
Thanks for the report. Can you tell me what "older" version of GCC you used?
I only found https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2324r1.pdf referring to GCC before 11. I actually believe that the code you found is actually illegal for ISO C 99 language librepo uses. So it's a bug which deserves fixing. I'm only trying to reproduce it with a -Wpedantic option without a success. That's why I'd like to know your GCC version.
Thanks for the report. Can you tell me what "older" version of GCC you used?
I only found https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2324r1.pdf referring to GCC before 11. I actually believe that the code you found is actually illegal for ISO C 99 language librepo uses. So it's a bug which deserves fixing. I'm only trying to reproduce it with a -Wpedantic option without a success. That's why I'd like to know your GCC version.
I've seen it on Debian 11 which has gcc 10.2.1.
Thanks. Now I can reproduce it. I had disabled gpgme support. Even the latest GCC warns about it. C2X is the first language version which allows labels at the end of the compound statements.
When selinux is not enabled, older gcc versions error out this way:
Ensuring the exit: block is not empty fixes the issue.