Opened 6 years ago

Closed 6 years ago

#7184 closed defect (fixed)

Redundant declaration in same scope

Reported by: cvvergara Owned by: warmerdam
Priority: low Milestone:
Component: default Version: 2.2.2
Severity: trivial Keywords:
Cc:

Description

Got this message

/usr/include/gdal/ogrsf_frmts.h:354:29: warning: redundant redeclaration of ‘void OGRRegisterAll()’ in same scope [-Wredundant-decls]
 void CPL_DLL OGRRegisterAll();
                             ^
In file included from /usr/include/gdal/gdal.h:47:0,
                 from /usr/include/gdal/gdal_priv.h:60,
                 from /home/vicky/potree/pdal/pdal/io/OGRWriter.hpp:51,
                 from /home/vicky/potree/pdal/pdal/io/OGRWriter.cpp:34:
/usr/include/gdal/ogr_api.h:631:14: note: previous declaration of ‘void OGRRegisterAll()’
 void CPL_DLL OGRRegisterAll(void);

Change History (1)

comment:1 by Even Rouault, 6 years ago

Resolution: fixed
Status: newclosed

In 41094:

Fix -Wredundant-decls warning on OGRRegisterAll() (fixes #7184)

Note: See TracTickets for help on using tickets.