Ticket #266 (closed defect: fixed)

Opened 1 month ago

Last modified 2 days ago

Variadic macros in FakedDeepsee.h are incorrectly defined.

Reported by: ppedriana Assigned to: mbensi
Priority: major Milestone: Galekid
Component: Bug Fix Version: 1.0
Keywords: Cc:
Number of hours worked: % Complete: 00
Number of hours remaining:

Description

FakedDeepsee.h has macros defined like so:

#define DS_CONSTRUCT(args, ...)

However, GCC mistakenly (by its own documentation, actually) accepts usage of these macros without arguments (e.g. DS_CONSTRUCT()), whereas the given definition requires at least one argument (args). Other compilers don't accept this and generate warnings or errors. GCC documents the expected usage at http://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html.

A more portable fix is to simply do this:

#define DS_CONSTRUCT(...)

Change History

08/19/08 11:26:36 changed by mbensi

  • status changed from new to closed.
  • resolution set to fixed.

revision 443.