Ticket #3541 (closed defect: fixed)

Opened 9 years ago

Last modified 8 years ago

[patch] fix latest warning regressions for recent gcc versions

Reported by: and Owned by:
Priority: trivial Milestone: 4.8.15
Component: mcedit Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

fix compile warning regressions introduced recently

editcmd.c:3647:9: error: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
editcmd.c:3653:32: error: passing argument 1 of 'g_free' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

patch against 52fd328042a426e885da891c8ce8218cda3a1cf7
compile test with GCC 5.2.0

Signed-off-by: Andreas Mohr <and@…>

Attachments

mc-3541-fix-compile-warning-regression.patch (1.4 KB) - added by and 9 years ago.

Change History

Changed 9 years ago by and

comment:1 Changed 8 years ago by andrew_b

  • Milestone changed from 4.8.15 to 4.8.16

comment:2 Changed 8 years ago by andrew_b

  • Blocked By 3547 added

comment:3 Changed 8 years ago by andrew_b

  • Component changed from mc-core to mcedit

comment:4 Changed 8 years ago by andrew_b

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from 4.8.16 to 4.8.15

Fixed in #3522.

comment:5 Changed 8 years ago by andrew_b

  • Blocked By 3547 removed
Note: See TracTickets for help on using tickets.