summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-10-27 12:23:50 +0100
committerSimon McVittie <smcv@collabora.com>2022-10-27 13:14:25 +0100
commitc59d553890b8eed712f5c3eab2edf934b95049f9 (patch)
treeaf3242d9cc81e41943a4a6c804ed097654acfac7 /.gitignore
parentd0ff4055afd3eaabf1e26913c05054f9777ba982 (diff)
downloadglib-c59d553890b8eed712f5c3eab2edf934b95049f9.tar.gz
gstdio: Silence "Not available before" warnings for inline functions
Whenever a static inline calls a GLib function that was added since we started tracking versions, we need to silence the "Not available before" warnings, otherwise compiling code that includes this header with GLIB_VERSION_MAX_ALLOWED set to an old version will emit warnings, even if the static inline is never actually called. If the static inline is API, we also need to ensure it is annotated with GLIB_AVAILABLE_STATIC_INLINE_IN_2_76 or similar, so that callers get the appropriate "Not available before" warnings to alert them to their unintended use of newer API. g_clear_fd() calls a function that was introduced in 2.36. It already issues its own warning if called with GLIB_VERSION_MAX_ALLOWED less than 2.76. Similarly, g_autofd uses internal function _g_clear_fd_ignore_error which calls g_clear_fd(), but it issues its own warning if used with GLIB_VERSION_MAX_ALLOWED less than 2.76. Fixes: b3934133 "gstdio: Add g_clear_fd() and g_autofd" Resolves: #2796 Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions