~ps-jenkins/platform-api/latestsnapshot-recup

« back to all changes in this revision

Viewing changes to src/ubuntu/hybris/bridge.h

  • Committer: Tarmac
  • Author(s): Martin Pitt
  • Date: 2013-12-03 17:15:37 UTC
  • mfrom: (175.1.2 fix-warnings)
  • Revision ID: tarmac-20131203171537-bcsxe7exmd4z1pfq
Fix all compiler warnings.

Approved by Ricardo Mendoza, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
        DLSYM(&f, #symbol);                     \
118
118
        return f(_1); }
119
119
 
 
120
// pcs attribute (calling convention) is only defined on ARM, avoid warning on
 
121
// other platforms
 
122
#ifdef __arm__
 
123
#define __SF_FN_ATTR __attribute__((pcs("aapcs")))
 
124
#else
 
125
#define __SF_FN_ATTR
 
126
#endif
 
127
 
120
128
#define IMPLEMENT_SF_FUNCTION1(return_type, symbol, arg1) \
121
129
    return_type symbol(arg1 _1)                        \
122
130
    {                                                  \
123
 
        static return_type (*f)(arg1) __attribute__((pcs("aapcs"))) = NULL; \
 
131
        static return_type (*f)(arg1) __SF_FN_ATTR = NULL; \
124
132
        DLSYM(&f, #symbol);                     \
125
133
        return f(_1); }
126
134