xmlconfig: Use static inline for regex fallback to prevent -O0 issues
authorJesse Natalie <jenatali@microsoft.com>
Sun, 1 Aug 2021 18:09:47 +0000 (11:09 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Aug 2021 15:14:26 +0000 (15:14 +0000)
commit68ff6f8be54f82c170ad7a1526891c63d43ac951
tree061fda949b1b921d5528da644fc0253007e504eb
parent7939094d656cdb1d75e0420c599b019499fab9be
xmlconfig: Use static inline for regex fallback to prevent -O0 issues

A non-static inline function body is only actually emitted by GCC during optimization passes,
so running -O0 ends up never emitting the body, producing linker errors.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Neha Bhende <bhenden@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12158>
src/util/xmlconfig.c