Opened 8 years ago

Last modified 8 years ago

#6685 closed defect

CPL_DISALLOW_COPY_ASSIGN triggers extra ";" warnings — at Initial Version

Reported by: behrisch Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 2.1.1
Severity: minor Keywords:
Cc:

Description

The macro itself has a ";" at the end and every usage also has an ";". When compiling with gcc having "-pedantic" enabled this triggers warning for every inclusion of an affected header file. This applies not only to the compilation of gdal but also to all users of the C/C++-library.

Possible patch is attached. Alternatively, one could fix the header files which use the macro.

Change History (0)

Note: See TracTickets for help on using tickets.