[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: warning in mingw [Was: [ANN] Lua 5.4.0 (rc1) now available]
- From: 云风 Cloud Wu <cloudwu@...>
- Date: Sat, 25 Apr 2020 17:39:14 +0800
Roberto Ierusalimschy <roberto@inf.puc-rio.br> 于2020年4月25日周六 上午2:41写道:
> Why 'void(*)(void)' would be special? Do other compilers have this
> same behavior, or is this a gcc kludge?
>
I guess void(*)(void) is special because casting anything from/to void
is considered safe by gcc .
https://github.com/gcc-mirror/gcc/blob/master/gcc/cp/typeck.c#L1211-L1234
--
http://blog.codingnow.com
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org