A weird looking statement at malloc.c

closed account (DEhqDjzh)
https://github.com/lattera/glibc/blob/master/malloc/malloc.c#L212
What is the purpose of that? redefining void ?! Can someone explain it to me?
closed account (DEhqDjzh)
@Repeater If that statement is deleted, will code break?
Last edited on
closed account (E0p9LyTq)
If that statement is deleted, will code break?

You could always try it. Delete and do tests.

Something I have done on occasion to see what the results are.

I make sure I back-up any file I muck around so I can restore when things go tumbling down.
closed account (DEhqDjzh)
@FurryGuy @Repeater How can I do a test? I am not familiar with compilers
Last edited on
Just delete it from the file, and see if your code builds again afterwards.

You'll want to do a clean rebuild, because the compiler probably won't check whether a standard header has changed.
Topic archived. No new replies allowed.