Closed magnumripper closed 2 years ago
That struct is used in encdatavault_common_plug.c
so I don't quite understand what's with my compiler (gcc 10.3)
Oh, it's using the struct salt
but not that instance *cur_salt
. So it is an actual "bug" if we don't want any warnings. How did not our build bots catch this? Surely some of then run with --enable-werror
, no?
Oh, it's using the
struct salt
but not that instance*cur_salt
. So it is an actual "bug" if we don't want any warnings. How did not our build bots catch this? Surely some of then run with--enable-werror
, no?
--enable-werror
is only enabled in older versions of the gcc.I'm using gcc 10.3.0 though, that's pretty fresh. IIRC I need to drop -Werror
only when building with ASan.
I can't remember which distros use gcc 10. Unfortunately, it looks like gcc 10 has (sort of) been ignored by the major distros.
We are using:
gcc 4.8 (CentOS), gcc 5.4 (Ubuntu 16), gcc 7.2 (fuzzing), gcc 7.4 (Win 2012/2016), gcc 7.5 (ubuntu 18), gcc 9.4 (ubuntu 20) and gcc 11.2 (Azure Windows, Fedora, ...);
Running with -Werror: