Commit 58cdd50e authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] remove argv pointer warning in test

gcc was complaining about type mismatch between the argv declaration and
the prototype of aml_init. This is fixed by declaring argc and argv
properly in stream_vanilla main.
parent a41b0412
......@@ -203,7 +203,7 @@ extern void tuned_STREAM_Triad(STREAM_TYPE scalar);
extern int omp_get_num_threads();
#endif
int
main()
main(int argc, char *argv[])
{
int quantum, checktick();
int BytesPerWord;
......@@ -262,8 +262,6 @@ main()
#endif
/* aml specific code */
int argc = 1;
char *argv[] = {"stream"};
aml_init(&argc, &argv);
struct aml_area area;
aml_area_init(&area, AML_AREA_TYPE_REGULAR);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment