Skip to content
Snippets Groups Projects
Commit 1ef15711 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Update the newly-added unit test to compile with the new strict prototype flag.

parent 66515dbb
Branches
Tags
No related merge requests found
...@@ -274,5 +274,5 @@ int main(int argc, char *argv[]) { ...@@ -274,5 +274,5 @@ int main(int argc, char *argv[]) {
return 0; return 0;
} }
#else #else
int main() { return 0; } int main(int argc, char *argv[]) { return 0; }
#endif #endif
...@@ -35,7 +35,6 @@ int main(int argc, char *argv[]) { return 0; } ...@@ -35,7 +35,6 @@ int main(int argc, char *argv[]) { return 0; }
#include "runner_doiact_fft.h" #include "runner_doiact_fft.h"
#include "swift.h" #include "swift.h"
__attribute__((always_inline)) INLINE static int row_major_id(int i, int j, __attribute__((always_inline)) INLINE static int row_major_id(int i, int j,
int k, int N) { int k, int N) {
return (((i + N) % N) * N * N + ((j + N) % N) * N + ((k + N) % N)); return (((i + N) % N) * N * N + ((j + N) % N) * N + ((k + N) % N));
......
...@@ -748,6 +748,6 @@ int main(int argc, char *argv[]) { ...@@ -748,6 +748,6 @@ int main(int argc, char *argv[]) {
#else #else
int main() { return 1; } int main(int argc, char *argv[]) { return 1; }
#endif #endif
...@@ -58,7 +58,7 @@ float gadget(float r, float epsilon) { ...@@ -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 h = 3.f;
const float r_max = 6.f; const float r_max = 6.f;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
/** /**
* @brief Test generic utility functions * @brief Test generic utility functions
*/ */
int main() { int main(int argc, char *argv[]) {
/// Test find_value_in_monot_incr_array() /// Test find_value_in_monot_incr_array()
int n = 100; int n = 100;
float array[n]; float array[n];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment