Remove weak from downcast method.
authorScott Wood <scott@buserror.net>
Fri, 24 Feb 2012 01:44:48 +0000 (19:44 -0600)
committerScott Wood <scott@buserror.net>
Fri, 9 Mar 2012 05:18:05 +0000 (23:18 -0600)
It makes no sense with inline functions.

Signed-off-by: Scott Wood <scott@buserror.net>
idlcomp/languages/c++/interface-caller.cc
idlcomp/languages/c++/main.cc

index 0f0d139985d53d771ee143fe43fdc0f4a6a89298..556293a4630951e9fa3a6aebf572fa96dc7284ce 100644 (file)
@@ -260,7 +260,7 @@ void CPPFile::output_internal(Interface *iface)
 
 void CPPFile::output_downcast_proto(Interface *iface, Interface *super)
 {
-       file << '\n' << indent << "static __attribute__((weak)) inline "
+       file << '\n' << indent << "static inline "
             << **iface->name << " downcast(";
        cpp_output_type(file, super, false, false);
        file << "oldptr);\n";
index 3e921e5eb94f9a236381ca76535380faed9fa9b2..3157a5597e3b7369d510c2cc18e7dfa3fb93d640 100644 (file)
@@ -527,7 +527,7 @@ void CPPFile::output_vstruct_main(Struct *sym)
 
        if (super)
                file << '\n'
-                    << indent << "static __attribute__((weak)) " << name << " *downcast(::System::VStruct *base)\n"
+                    << indent << "static " << name << " *downcast(::System::VStruct *base)\n"
                     << indent << "{\n"
                     << indent << "\tif (!base)\n"
                     << indent << "\t\treturn NULL;\n\n"