Fix MSVC compilation
Brought to you by:
noxorc
Commit 3dd05c and subsequent ones introduced the use of the GNU specific __attribute__((__unused__)), which breaks MSVC compilation...
I'll use this as a reminder that gnu-efi is compiled with more than GNU toolchains, and that contributors might want to be careful about adding GNU-specific extensions...
This patch does the following:
eficompiler.h header that sets all compiler-specific options and extensionsEFI_UNUSED macro to be used in lieu of __attribute__((__unused__)) and applies it to the relevant sourcesALIGN(x) macro, previously defined in efisetjmp.h to the new headerOh, and it also fixes a bunch of trailing whitespaces (because my code editor is set to do just that by default).
Hope this can be applied soon - thanks!
/Pete
Accepted and pushed to git tree.
commit 5ff74ecae8b8452e3630bb00611fb610da72ac59
Much appreciated. Thanks!