GCC C compile error, void value not ignored as it ought to be

前端 未结 5 1351
长情又很酷
长情又很酷 2020-12-20 15:40

I\'m having trouble compiling some C code. When I compile, I\'l get this error:

player.c: In function ‘login’:  
player.c:54:17: error: void value not igno         


        
5条回答
  •  轮回少年
    2020-12-20 16:01

    I'm going to guess that sp_session_login is declared as returning void and not sp_error and there is some alternative way of determining whether it succeeded.

提交回复
热议问题