higan-emu / libco

libco is a cooperative multithreading library written in C89.
Other
125 stars 25 forks source link

Fix Clang's -Wstrict-prototypes warning #17

Closed namandixit closed 4 years ago

namandixit commented 4 years ago

Clang's -Weverything flags results in the following warnings:

/code/include/libkhadi/libco/libco.h:16:21: error: this function declaration is not a prototype
      [-Werror,-Wstrict-prototypes]
cothread_t co_active();
                    ^
                     void
/code/include/libkhadi/libco/libco.h:21:20: error: this function declaration is not a prototype
      [-Werror,-Wstrict-prototypes]
int co_serializable();
                   ^
                    void

This PR fixes this warning.

namandixit commented 4 years ago

Wait, WTF? Why did Github include the another commit too? Closing this and recreating a new PR.