thradams / cake

Cake a C23 front end and transpiler written in C
http://thradams.com/cake/index.html
GNU General Public License v3.0
533 stars 21 forks source link

global variables with -fanalyzer #150

Open thradams opened 6 months ago

thradams commented 6 months ago

The state of non const global variables used inside functions needs to be "reset" to "unknown" each time function starts. also static variables declared inside functions.

iphydf commented 6 months ago

In our code we don't use non-const globals, but there are several default initialised constant structs used to zero-init new objects. They will always have all their owning pointers null.

thradams commented 2 months ago

missing const