Closed pmackey2 closed 2 days ago
Hi Patrick,
thanks for reporting ... clang doesn't complain about this, and I can reproduce this with gcc but I've no idea why gcc complains. Looks like a false positive to me. I'll push a fix shortly.
Thanks,
Marc
Hi,
I've reverted that patch due to pre-processor issues. Instead, -Werror will no longer be set since 95362a061b59b4216011e0005f5dc72fb5d326a0.
Cheers,
Marc
Hi,
this was indeed an issue with the code, not with gcc. Thanks!
Cheers,
Marc
Summary
While debugging another issue, I encountered a problem building tacacs-ng with debugging enabled.
I'm building the latest version from commit 6604ec1 at HEAD.
Environment
I'm building this in an Alpine Linux docker container.
gcc-13.2.1 make-4.4.1 musl-dev-1.2.5 libstdc++-13.2.1 c-ares-dev-1.33.1 openssl-dev-3.3.2 libcrypto3-3.3.2 pcre2-dev-10.43 curl-dev-8.11.0 perl-5.38.2
Error
During the build phase, I receive the following output:
To reproduce
To reproduce the build error in an Alpine Linux container, run the following commands.
Expected outcome
Successful build with debugging enabled, but instead, the error appears in main.c.