Closed sbraz closed 1 year ago
I can reproduce the error with those flags but I'm a bit confused because it refers to code that is inside #ifdef
... #else
so lines 95 and 89 can't both be defined at the same time.
HAVE_POSIX_FADVISE is not defined for all TUs that include this header (quick grep shows it's only defined for the compilation of File.cpp), which leads to different definitions of the enum across the program.
Most of ODR applies to all definitions within the whole program, not just all definitions within one TU.
Thanks, this will be fixed in the next version
https://github.com/airdcpp-web/airdcpp-webclient/commit/5f12f803c2fc0450111152e2ea5f649ed92f4b7f
Hi, As initially reported here: https://bugs.gentoo.org/861839, the build fails with certain strict compiler flags:
There might be further errors later too.