Skip to content

Commit

Permalink
log: suppress maybe-uninitialized warning false positive
Browse files Browse the repository at this point in the history
This will never be used uninitialized, guarded by use_dbghelp, but GCC
analysis is too shallow and fails to see that.
  • Loading branch information
kasper93 authored and haasn committed Oct 29, 2023
1 parent 768ffe0 commit e0b45e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void pl_log_stack_trace(pl_log log, enum pl_log_level lev)
HANDLE process = GetCurrentProcess();
HMODULE dbghelp = LoadLibrary("dbghelp.dll");
DWORD options;
SYMBOL_INFO *symbol;
SYMBOL_INFO *symbol = NULL;
BOOL use_dbghelp = !!dbghelp;

#define DBGHELP_SYM(sym) \
Expand Down

0 comments on commit e0b45e4

Please sign in to comment.