Hi Allen,
> Author: allenb
> Date: Wed Sep 27 12:55:26 2006
> New Revision: 189
> Trac changeset: http://opensg.vrsource.org/trac/changeset/189
> ViewVC: http://realityforge.vrsource.org/viewvc/opensg?view=rev&revision=189
>
> Modified:
> trunk/Source/Base/Base/OSGBaseTypes.h
> Log:
> - If we are on gcc using the attribute unused to ignore the unused statics
> for plugins. This is a little ugly but it gets rid of a warning that shows
> up everytime OpenSG is included.
Looking at the surrounding code makes me wonder if that is the proper
way to fix it. I believe removing the static qualifier as in the
__APPLE__ case is the right way to go here, or maybe putting these in
the translation unit that actually uses them (could be
OSGBaseInitFunctions.cpp ?).
#ifdef WIN32
static const Char8 *PluginExt = ".dll";
static const Char8 *PluginPattern = "*.dll";
static const Char8 DirSep = '\\';
#elif defined(__APPLE__)
const Char8 PluginExt[] = ".dylib";
const Char8 PluginPattern[] = "*.dylib";
const Char8 DirSep = '/';
#else
#if defined(__GNUC__)
#define OSG_UNUSED_ATTRIB __attribute__((__unused__))
#else
#define OSG_UNUSED_ATTRIB
#endif
static const Char8 *PluginExt OSG_UNUSED_ATTRIB = ".so";
static const Char8 *PluginPattern OSG_UNUSED_ATTRIB = "*.so";
static const Char8 DirSep OSG_UNUSED_ATTRIB = '/';
#undef OSG_UNUSED_ATTRIB
#endif
Thanks,
Carsten
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core