Constructions such as:
if (foo)
PED_DEBUG (0, "foo");
else
PED_DEBUG (0, "not foo");
did not compile reliably, depending on the configuration. Make this
work.
* include/parted/debug.h [DEBUG && __GNUC__ && !__JSFTRACE__]
(PED_DEBUG): Remove trailing semicolon.
[!DEBUG] (PED_ASSERT): Use do-while rather than while.
[!DEBUG] (PED_DEBUG): Likewise.
#define PED_DEBUG(level, ...) \
ped_debug ( level, __FILE__, __LINE__, __PRETTY_FUNCTION__, \
- __VA_ARGS__ );
+ __VA_ARGS__ )
#define PED_ASSERT(cond, action) \
do { \
#else /* !DEBUG */
-#define PED_ASSERT(cond, action) while (0) {}
-#define PED_DEBUG(level, ...) while (0) {}
+#define PED_ASSERT(cond, action) do {} while (0)
+#define PED_DEBUG(level, ...) do {} while (0)
#endif /* DEBUG */