gnash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash] [PATCH] Fix klash visibility attribute support for gcc 4.2


From: Bernhard Rosenkraenzer
Subject: [Gnash] [PATCH] Fix klash visibility attribute support for gcc 4.2
Date: Thu, 1 Feb 2007 14:57:43 +0100
User-agent: KMail/1.9.5

In gcc 4.2+, the visibility of a class member has to be specified in the class 
definition rather than the implementation -- lack of a visibilty statement 
there results in an implicit visibility attribute.

klash specifies its visibility in the implementation, resulting in

klash_part.cpp:65: warning: 'KlashFactory::KlashFactory()': visibility 
attribute ignored because it
klash_part.cpp:50: warning: conflicts with previous declaration here
klash_part.cpp:69: warning: 'virtual KlashFactory::~KlashFactory()': 
visibility attribute ignored because it
klash_part.cpp:51: warning: conflicts with previous declaration here

The attached patch fixes it. (Tested only with 4.2, but since older gccs 
accepted both places, this shouldn't break anything).

Regards,
bero

-- 
Get your own Linux distribution -- http://www.yold.org/

Attachment: gnash-20070201-klash-visibility.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]