warning: `visibility' attribute does not apply to types when compiling kde with gcc 4.0 (former 3.5)

Grzegorz Jaƛkiewicz gryzman at gmail.com
Fri Sep 17 01:13:53 BST 2004


Hi folks

visibility() thing is enabled for gcc 3.4 (in
kdelibs/kdecore/kdemacros.h), it gives me loads of warnings during
build, which were not there when I used gcc 3.4.
Now I know gcc 4.0 is still in it's alphas, but perhaps it's time to
do something about it.

Here's the snippet from make 2> log && grep visibility log |uniq

./kdecore/kcheckaccelerators.h:96: warning: `visibility' attribute
does not apply to types
./kdecore/kaccelmanager.h:79: warning: `visibility' attribute does not
apply to types
./kdecore/kconfigdata.h:93: warning: `visibility' attribute does not
apply to types
./kdecore/kconfigbase.h:2157: warning: `visibility' attribute does not
apply to types
./kdecore/ksharedptr.h:82: warning: `visibility' attribute does not
apply to types
./kdecore/ksharedptr.h:175: warning: `visibility' attribute does not
apply to types
./kdecore/klockfile.h:121: warning: `visibility' attribute does not
apply to types
./kdecore/kconfig.h:268: warning: `visibility' attribute does not apply to types
./kdecore/kdebug.h:407: warning: `visibility' attribute does not apply to types
./kdecore/kinstance.h:157: warning: `visibility' attribute does not
apply to types
./kdecore/kglobal.h:172: warning: `visibility' attribute does not apply to types
./kdecore/kshortcut.h:833: warning: `visibility' attribute does not
apply to types
./kdecore/klocale.h:1304: warning: `visibility' attribute does not
apply to types
./dcop/dcopobject.h:340: warning: `visibility' attribute does not apply to types
./dcop/dcopobject.h:406: warning: `visibility' attribute does not apply to types
./dcop/dcopref.h:1464: warning: `visibility' attribute does not apply to types
./kdecore/kdebugdcopiface.h:49: warning: `visibility' attribute does
not apply to types
./kdecore/kdebug.h:407: warning: `visibility' attribute does not apply to types
./dcop/dcopobject.h:406: warning: `visibility' attribute does not apply to types
./dcop/dcopref.h:109: warning: `visibility' attribute does not apply to types
/home/gj/kde-sources/kdelibs/kdecore/kdebugdcopiface.h:49: warning:
`visibility' attribute does not apply to types
....


-- 
GJ




More information about the kde-core-devel mailing list