Fork us on GitHub Follow us on Google+ Follow us on Facebook Follow us on Twitter

Opened 3 weeks ago

#737 new defect

PCUT_ASSERT_NULL does not accept const pointer

Reported by: Jiri Svoboda Owned by:
Priority: major Milestone: 0.8.0
Component: helenos/lib/other Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:

Description

The following code:

const void *a = NULL;
PCUT_ASSERT_NULL(a);

will produce a warning like

../../lib/pcut/include/pcut/asserts.h:150:25: error: initialization discards
'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Change History (0)

Note: See TracTickets for help on using tickets.