Comment on UndefinedBehaviorSanitizer's Unexpected BehaviorparentComments−shakna1yNot all pointers. Function pointers, though often used that way, should not be cast to void. ISO C forbids it. (Implementations may allow it.)−gpderetta1yISO C forbids it, but, FWIW, POSIX requires it. So pick your standard I guess.
Comments
Not all pointers. Function pointers, though often used that way, should not be cast to void. ISO C forbids it. (Implementations may allow it.)
ISO C forbids it, but, FWIW, POSIX requires it. So pick your standard I guess.