[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A weird bug with luaL_Reg array
- From: Sergey Zakharchenko <doublef.mobile@...>
- Date: Fri, 1 Jul 2022 11:54:33 +0000
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