Fixed compiler warning caused by referencing a static variable from a non-static inline function.