Skip to content

Commit

Permalink
Update the newly-added unit test to compile with the new strict proto…
Browse files Browse the repository at this point in the history
…type flag.
  • Loading branch information
MatthieuSchaller committed May 30, 2018
1 parent 66515db commit 1ef1571
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/testEOS.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,5 +274,5 @@ int main(int argc, char *argv[]) {
return 0;
}
#else
int main() { return 0; }
int main(int argc, char *argv[]) { return 0; }
#endif
1 change: 0 additions & 1 deletion tests/testFFT.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ int main(int argc, char *argv[]) { return 0; }
#include "runner_doiact_fft.h"
#include "swift.h"


__attribute__((always_inline)) INLINE static int row_major_id(int i, int j,
int k, int N) {
return (((i + N) % N) * N * N + ((j + N) % N) * N + ((k + N) % N));
Expand Down
2 changes: 1 addition & 1 deletion tests/testInteractions.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,6 @@ int main(int argc, char *argv[]) {

#else

int main() { return 1; }
int main(int argc, char *argv[]) { return 1; }

#endif
2 changes: 1 addition & 1 deletion tests/testKernelGrav.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ float gadget(float r, float epsilon) {
}
}

int main() {
int main(int argc, char *argv[]) {

const float h = 3.f;
const float r_max = 6.f;
Expand Down
2 changes: 1 addition & 1 deletion tests/testUtilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* @brief Test generic utility functions
*/
int main() {
int main(int argc, char *argv[]) {
/// Test find_value_in_monot_incr_array()
int n = 100;
float array[n];
Expand Down

0 comments on commit 1ef1571

Please sign in to comment.