Opened 8 years ago

Last modified 8 years ago

#6685 closed defect

CPL_DISALLOW_COPY_ASSIGN triggers extra ";" warnings — at Version 2

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

Description (last modified by behrisch)

The macro itself has a ";" at the end and many usages also have 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.

One should fix the files which use the macro using the attached patch.

Change History (3)

comment:1 by behrisch, 8 years ago

Description: modified (diff)

by behrisch, 8 years ago

comment:2 by behrisch, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.