vtsynergy / OpenDwarfs

The OpenDwarfs project provides a benchmark suite consisting of different computation/communication idioms, i.e., dwarfs, for state-of-art multicore and GPU systems. The first instantiation of the OpenDwarfs has been realized in OpenCL.
Other
94 stars 48 forks source link

Missing return in function #7

Open enclle opened 9 years ago

enclle commented 9 years ago

Hello,

I downloaded OpenDwarfs and tried to compile on Mac OS X following the README instructions, then I got the error:

../include/common_args.c:231:1: error: control reaches end of non-void function [-Werror,-Wreturn-type]

To correct this error, just add a return 0; to the line 231 of the file common_args.c and it will compile, but you need either to correct the function signature and change int to void, or supply the correct returns inside the function.