tests: set C11, enable pedantic warnings, fix GCC and Clang warnings

This commit is contained in:
Tibor Nagy
2019-02-20 15:04:47 +01:00
parent 1af4eb7ec0
commit 7ee59d2fdb
15 changed files with 43 additions and 29 deletions
+4 -2
View File
@@ -22,8 +22,10 @@ int int_cmp(const void* a, const void* b) {
int main(int argc, char* argv[]) {
int x = 0;
int y = 1024;
int empty[] = {};
BSEARCH_TEST_INT(x, empty, 0, NULL);
// TODO: Zero sized arrays are a non-standard GNU extension
//int empty[] = {};
//BSEARCH_TEST_INT(x, empty, 0, NULL);
int singleton[] = {42};
printf("%p\n%p\n", singleton, &singleton[1]);