captainys / TOWNSEMU

FM Towns Emulator "Tsugaru"
BSD 3-Clause "New" or "Revised" License
238 stars 17 forks source link

Fixing compiling error #48

Closed Arbars closed 1 year ago

Arbars commented 2 years ago

In the beginning of compilation as a part of Tsugaru, the process crashes with "Some warnings being treated as errors" message.

captainys commented 2 years ago

Thank you for finding it! I just forgot returning a value from that function as you found.

But, the function was supposed to return true or false. If you return write as a return value, it is a function pointer, and since it is non-null, the compiler will end up returning true. But, I rather return true.

I fixed it on my side. Please check out and see it compiles in your environment.

Thanks!