Opened 8 years ago
Last modified 8 years ago
#6685 closed defect
CPL_DISALLOW_COPY_ASSIGN triggers extra ";" warnings — at Version 1
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 header files which use the macro or use the attached patch which will induce further adaptions for those cases which do not use the extra ";".
Change History (2)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
by , 8 years ago
Attachment: | gdal-cpl-port-pedantic.patch added |
---|
Note:
See TracTickets
for help on using tickets.