Skip to content
Commit b88bf6e6 authored by Daniel Gustafsson's avatar Daniel Gustafsson
Browse files

tool_doswin: Fix uninitialized field warning

The partial struct initialization in 397664a0

 caused
a warning on uninitialized MODULEENTRY32 struct members:

  /src/tool_doswin.c:681:3: warning: missing initializer for field
  'th32ModuleID' of 'MODULEENTRY32 {aka struct tagMODULEENTRY32}'
  [-Wmissing-field-initializers]

This is sort of a bogus warning as the remaining members will be set
to zero by the compiler, as all omitted members are. Nevertheless,
remove the warning by omitting all members and setting the dwSize
members explicitly.

Closes #3254
Reviewed-by: default avatarMarcel Raad <Marcel.Raad@teamviewer.com>
Reviewed-by: default avatarJay Satiro <raysatiro@yahoo.com>
parent 1cccf2f9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment