rubund / graywolf

Other
107 stars 36 forks source link

Issue with buster.c #8

Closed joaocarlos closed 6 years ago

joaocarlos commented 7 years ago

Hi,

I am trying to compile this source in a OSX system. However I am getting the error bellow.

/graywolf/src/Ylib/buster.c:230:2: error: 
      non-void function 'Ybuster_addpt' should return a value [-Wreturn-type]
        return ;

Any ideas on what should I do? I know it is not usual to have such tools on OSX systems, but since it is a Unix basis, I can have some tools such YoSys installed.

T045T commented 7 years ago

I just spent a few hours trying to get graywolf to build on OSX.

I'm starting to think that cleaning up the code would be easier than wrangling all the compiler options you'd need to...

yageek commented 7 years ago

You can lower the number of errors by adding ADD_DEFINITIONS("-Wno-return-type") in the main CMakeLists.txt

madankumar92 commented 7 years ago

@yageek Adding this line doesn't help, it still gives non-void function error

yageek commented 7 years ago

May be adding this instead ADD_DEFINITIONS("-std=c89 -Wno-return-type")?

EDIT: I had to perform some modification to be able to compile on OSX. I pushed the require changes here: https://github.com/yageek/graywolf

StefanBruens commented 6 years ago

Likely fixed in commit 6100c0ed3ab70248f57a21f4047d2fd3f246fc00

rubund commented 6 years ago

yes. all those should be fixed now