with your “warning” you also get a string number, where “warning” appears.
please give the string where an error appears
I did not see at first time your warnings
just replace the -1 to NULL
or replace -1 to (void *)-1
course standard should be written to NULL
, but if you really want, you can write (void *)-1
2
solved assignment makes pointer from integer without a cast [enabled by default] in c language