Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10317


Ignore:
Timestamp:
Mar 15, 2015, 5:22:19 PM (9 years ago)
Author:
smerkli
Message:

fixed compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/util/output/OutputDefinitions.h

    r9550 r10317  
    4949#ifndef DISABLE_OUTPUT_CONTEXT_STATIC_CACHE
    5050    #define REGISTER_OUTPUT_CONTEXT(name) \
    51         const OutputContextContainer& name() { static OutputContextContainer context = registerContext(#name); return context; }
     51        inline const OutputContextContainer& name() { static OutputContextContainer context = registerContext(#name); return context; }
    5252#else
    5353    #define REGISTER_OUTPUT_CONTEXT(name) \
    54         const OutputContextContainer& name() { return registerContext(#name); }
     54        inline const OutputContextContainer& name() { return registerContext(#name); }
    5555#endif
    5656
     
    6767#ifndef DISABLE_OUTPUT_CONTEXT_STATIC_CACHE
    6868    #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \
    69         const OutputContextContainer& subname() { static const OutputContextContainer context = registerContext(#name, #subname); return context; }
     69        inline const OutputContextContainer& subname() { static const OutputContextContainer context = registerContext(#name, #subname); return context; }
    7070#else
    7171    #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \
    72         const OutputContextContainer& subname() { return registerContext(#name, #subname); }
     72        inline const OutputContextContainer& subname() { return registerContext(#name, #subname); }
    7373#endif
    7474
Note: See TracChangeset for help on using the changeset viewer.