Closed xor-gate closed 6 years ago
I don't have clang available anywhere in my reach right now. I fixed what gcc can see with -Wextra
and -Wsign-conversion
in the commit 704359ee6eaf8aa8f99720a0cf20f1338886b0be. If gcc missed something what clang can see, feel free to make PR.
About the {0}
, I see adding some TEST_LIST_END
macro as superfluous and I cannot see any benefit in having it. You may use { NULL, NULL}
directly. It is IMO clear from the TEST_LIST
description how such super-correct end record looks like.
You can enable clang for travis like this https://github.com/xor-gate/stlink2/blob/master/.travis.yml#L23-L24, dont forget to add clang to the installed packages like this: https://github.com/xor-gate/stlink2/blob/master/.travis.yml#L10-L13
Should be fixed by 21845db79f22a6e15a42238613ea227317f34a7f.
I have copied latest master into my project, but I have very strict compiler flags. Here is the output:
For the last test list entry create a macro to have all fields initialized instead of incorrect
{0}
: