openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/rsyslog.h
static inline syslog_pri_t __attribute__((unused))
pri2fac(const syslog_pri_t pri)
{
    unsigned fac = pri >> 3;
    return (fac > 23) ? LOG_FAC_INVLD : fac;
}
/* we need to evaluate our argument only once, as otherwise we may
 * have side-effects (this was seen in some version).
 * Note: I know that "static inline" is not the right thing from a C99
 * PoV, but some environments treat, even in C99 mode, compile
 * non-static inline into the source even if not defined as "extern". This
 * obviously results in linker errors. Using "static inline" as below together
 * with "__attribute__((unused))" works in all cases. Note also that we
 * cannot work around this in pri2fac, as we would otherwise need to evaluate
 * pri more than once.
 */
we need to evaluate our argument only once, as otherwise we may
have side-effects (this was seen in some version).
Note: I know that "static inline" is not the right thing from a C99
PoV, but some environments treat, even in C99 mode, compile
non-static inline into the source even if not defined as "extern". This
obviously results in linker errors. Using "static inline" as below together
with "__attribute__((unused))" works in all cases. Note also that we
cannot work around this in pri2fac, as we would otherwise need to evaluate
pri more than once.
we need to evaluate our argument only once as otherwise we may have side - effects ( this was seen in some version ) . Note : I know that " static inline " is not the right thing from a C99 PoV but some environments treat even in C99 mode compile non - static inline into the source even if not defined as " extern " . This obviously results in linker errors . Using " static inline " as below together with " __attribute__ (( unused )) " works in all cases . Note also that we cannot work around this in pri2fac as we would otherwise need to evaluate pri more than once .
static inline syslog_pri_t __attribute__((unused))
pri2fac(const syslog_pri_t pri)
{
    unsigned fac = pri >> 3;
    return (fac > 23) ? LOG_FAC_INVLD : fac;
}
static inline syslog_pri_t __attribute__ ( ( unused ) ) pri2fac ( const syslog_pri_t pri ) { unsigned fac = pri >> 3 ; return ( fac > 23 ) ? LOG_FAC_INVLD : fac ; }
we need to evaluate our argument only once, as otherwise we may
 have side-effects (this was seen in some version).
we need to evaluate our argument only once as otherwise we may have side - effects ( this was seen in some version ) .