Ticket #1919 (closed defect: fixed)

Opened 2 years ago

Last modified 21 months ago

Fix unused-variable warnings when using -NDEBUG build option

Reported by: riza Owned by: bennylp
Priority: normal Milestone: release-2.6
Component: common Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no


When using -NDEBUG -Wunused-but-set-variable build option, some unused-variable warnings will be generated. This is mainly because pj_assert will not be evaluated when -NDEBUG is used.

Although harmless, eliminating compiler warning is a good practice.

Change History

comment:1 Changed 2 years ago by riza

  • Milestone changed from release-2.x to release-2.6

comment:2 Changed 21 months ago by riza

  • Status changed from new to closed
  • Resolution set to fixed

In 5535:

Close #1919: Clear unused-variable warnings.

Note: See TracTickets for help on using tickets.