[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A weird bug with luaL_Reg array
- From: Sergey Zakharchenko <doublef.mobile@...>
- Date: Fri, 1 Jul 2022 11:54:33 +0000
Shmuel Zeigerman <firstname.lastname@example.org>:
> 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.
as this may have implications.