lua-users home
lua-l archive

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


Shmuel,

Shmuel Zeigerman <shmuz@013net.net>:
> 1. Whether the lack of the word 'static' is a bug here?

It's unnecessary for any other code anywhere outside the translation
unit to see this, so I would say yes.

> 2. Does some GCC switch exist to prevent such behavior?

You may want to try to compile with -fvisibility=hidden if you're into
solving problems in interesting ways. Please read e.g.
https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gcc/Code-Gen-Options.html#Code-Gen-Options
as this may have implications.

Best regards,

-- 
DoubleF