Project

General

Profile

Bug #851873

gtk: gcc-10 warning about uninitialized cmd_status[0] in usdlg_cmd_cursor_changed()

Added by Marko Lindqvist 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
gui-gtk-3.22
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Gcc-10 warns about possible use of uninitialized cmd_status0 in the end of usdlg_cmd_curser_changed() of all gtk clients. Seen in S2_5 and S2_6, latter branches likely affected.
Adding 'default:' that sets cmd_status0 in the switch-case above the function end makes the warning to go away.

History

#2 Updated by Marko Lindqvist 7 months ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

#3 Updated by Marko Lindqvist 7 months ago

  • Target version changed from 2.6.2 to 2.5.12

Also available in: Atom PDF