MCPcopy Create free account
hub / github.com/NetHack/NetHack / sa_victual

Function sa_victual

src/decl.c:1198–1203  ·  view source on GitHub ↗

gcc 12.2's static analyzer thinks that some fields of svc.context.victual are uninitialized when compiling 'bite(eat.c)' but that's impossible; it is defined at global scope so guaranteed to be given implicit initialization for fields that aren't explicitly initialized (all of 'context'); having bite() pass &svc.context.victual to this no-op eliminates the analyzer's very verbose co

Source from the content-addressed store, hash-verified

1196 'context'); having bite() pass &svc.context.victual to this no-op
1197 eliminates the analyzer's very verbose complaint */
1198void
1199sa_victual(
1200 volatile struct victual_info *context_victual UNUSED)
1201{
1202 return;
1203}
1204
1205/*decl.c*/

Callers 1

biteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected