GNOME Bugzilla – Bug 770667
Initialize variable
Last modified: 2017-04-17 18:20:40 UTC
Some compilers seem to be over-pessimistic and abort the build with: gcal-month-view.c: In function 'gcal_month_view_drag_drop': gcal-month-view.c:908:32: error: 'timespan' may be used uninitialized in this function [-Werror=maybe-uninitialized] GDateTime *new_end = g_date_time_add (new_start, timespan); Even though the usage of the variable is guarded by an equal if as the assignment
Created attachment 334548 [details] [review] Initialize variable
*** Bug 770673 has been marked as a duplicate of this bug. ***
Thanks for the patch.
for the record - https://bugzilla.redhat.com/show_bug.cgi?id=1372072 is the bug against gcc for emitting the bogus(?) warning