Opened 7 years ago
Closed 7 years ago
#6685 closed defect (fixed)
CPL_DISALLOW_COPY_ASSIGN triggers extra ";" warnings
Reported by: | behrisch | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | 2.1.1 |
Severity: | minor | Keywords: | |
Cc: |
Description (last modified by )
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.
Attachments (1)
Change History (4)
comment:1 by , 7 years ago
Description: | modified (diff) |
---|
by , 7 years ago
Attachment: | gdal-cpl-port-pedantic.patch added |
---|
comment:2 by , 7 years ago
Description: | modified (diff) |
---|
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 35751: