[CLN-list] clang warnings - struct/class mismatch

David van der Spoel spoel at xray.bmc.uu.se
Fri Jun 28 13:28:36 CEST 2013


Hi,

I'm trying to compile my application that links to CLN using the clang 
compiler, and it is complaining (warning) about struct/class mixups:

In file included from /opt/local/include/cln/cln.h:27:
/opt/local/include/cln/string.h:28:9: warning: class 'cl_string' was 
previously declared as a struct [-Wmismatched-tags]
         friend class cl_string;
                ^
/opt/local/include/cln/string.h:13:8: note: previous use is here
struct cl_string;
        ^
In file included from 
/Users/spoel/GG/alexandria/gromacs/src/gromacs/coulombintegrals/DSlater_1S_3S.cpp:1:
In file included from 
/Users/spoel/GG/alexandria/gromacs/src/gromacs/coulombintegrals/slater_low.h:46:
In file included from /opt/local/include/cln/cln.h:29:
/opt/local/include/cln/proplist.h:41:1: warning: 'cl_property_list' 
defined as a struct here but previously declared as a class 
[-Wmismatched-tags]
struct cl_property_list {
^
/opt/local/include/cln/proplist.h:35:9: note: did you mean struct here?
         friend class cl_property_list;
                ^~~~~
                struct
2 warnings generated.


Clues?
-- 
David van der Spoel, Ph.D., Professor of Biology
Dept. of Cell & Molec. Biol., Uppsala University.
Box 596, 75124 Uppsala, Sweden. Phone:	+46184714205.
spoel at xray.bmc.uu.se    http://folding.bmc.uu.se


More information about the CLN-list mailing list