Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Fucking GCC warnings

Name: Anonymous 2010-11-12 13:54

request for implicit conversion from ‘void *’ to ‘struct keys *’ not permitted in C++

keys = mmap(0, sizeof(struct keys), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);

First: C99 code (-x c -std=c99).
Second: what is going on?

Name: Anonymous 2010-11-13 9:27

>>15
No, you're wrong. If the intent is to cast to a specific type, then you should indeed explicitly perform the cast.

The best software projects are the ones that compile error/warning free with -Wall -Wextra -Werror. Shit with thousands of warnings is not maintainable.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List