Opened 8 years ago
Closed 8 years ago
#1919 closed defect (fixed)
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 |
Description
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 (2)
comment:1 Changed 8 years ago by riza
- Milestone changed from release-2.x to release-2.6
comment:2 Changed 8 years ago by riza
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
In 5535: