cake icon indicating copy to clipboard operation
cake copied to clipboard

global variables with -fanalyzer

Open thradams opened this issue 11 months ago • 2 comments

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.

thradams avatar Mar 06 '24 22:03 thradams

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.

iphydf avatar Mar 08 '24 12:03 iphydf

missing const

thradams avatar Jun 25 '24 01:06 thradams