warning: function returns address of local variable [-Wreturn-local-addr]

前端 未结 4 675
Happy的楠姐
Happy的楠姐 2020-12-22 10:58

I get this error when compiling and have checked out other questions here with no further progress:

funciones.c: In function ‘Lyapunov’: ../funciones.

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-22 11:34

    to avoid all the messy malloc/free calls, etc. define the rgb in the caller and pass the address to the function.

提交回复
热议问题