lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi all,

For Lua 5.1wk6 the visibility("hidden") attribute seem to produce warning messages on older mingw and cygwin compilers. I wonder if others are seeing the same. I hope I haven't done anything stupid; I did not modify anything and the compilers are vanilla installs.

On Mingw (gcc version 3.2.3 (mingw special 20030504-1)):
lundump.h:14: warning: `visibility' attribute directive ignored
lundump.h:17: warning: `visibility' attribute directive ignored

3.2.3 is a bit old, but it seems to be everybody's favourite stable mingw dist. and many people are still using it. :-)

On Cygwin (gcc version 3.3.3 (cygwin special)):
lundump.c:288: warning: visibility attribute not supported in this configuration; ignored

The URL http://www.ohse.de/uwe/articles/gcc-attributes.html
claims 'visibility' is found in >=3.3, so I wonder if someone can confirm whether ((__GNUC__*100 + __GNUC_MINOR__) >= 302) should be 303 instead in luaconf.h. Does anyone have advice on what to do with the Cygwin warning messages?

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia