ColinIanKing / fwts

NOT THE UPSTEAM FWTS REPO, see https://github.com/fwts/fwts instead!
https://wiki.ubuntu.com/Kernel/Reference/fwts
28 stars 11 forks source link

Build fails under Arch error: conflicting types for 'fwts_cpu_has_c1e' #12

Open TomJansen opened 1 year ago

TomJansen commented 1 year ago

The build fails under Arch with:

fwts_cpu.c:225:11: error: conflicting types for 'fwts_cpu_has_c1e' due to enum/integer mismatch; have 'fwts_bool(void)' [-Werror=enum-int-mismatch]
  225 | fwts_bool fwts_cpu_has_c1e(void)
      |           ^~~~~~~~~~~~~~~~
In file included from fwts_cpu.c:43:
../../../src/lib/include/fwts_cpu.h:66:5: note: previous declaration of 'fwts_cpu_has_c1e' with type 'int(void)'
   66 | int fwts_cpu_has_c1e(void);
      |     ^~~~~~~~~~~~~~~~
TomJansen commented 1 year ago

I fixed this issue by running make CFLAGS="-Wno-error=enum-int-mismatch"

ArthurHeymans commented 1 year ago

Also stumbled upon this. https://github.com/ColinIanKing/fwts/pull/13 has the fix :-)

ColinIanKing commented 7 months ago

This is not the official github repository, please re-do the issue report against https://github.com/fwts/