This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 7b59a86633 swscale/uops_tmpl: move attributes before `static` keyword
7b59a86633 is described below
commit 7b59a86633b81e7777aece99655e94052324597f
Author: Niklas Haas <[email protected]>
AuthorDate: Wed Jun 10 16:26:12 2026 +0200
Commit: Niklas Haas <[email protected]>
CommitDate: Wed Jun 10 16:27:58 2026 +0200
swscale/uops_tmpl: move attributes before `static` keyword
This fails to compile with C23 standard attributes otherwise.
Technically only av_unused requires this, but move the other attributes
as well for consistency / future proofing.
Signed-off-by: Niklas Haas <[email protected]>
---
libswscale/uops_tmpl.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libswscale/uops_tmpl.h b/libswscale/uops_tmpl.h
index 80c6e5221d..176846ad14 100644
--- a/libswscale/uops_tmpl.h
+++ b/libswscale/uops_tmpl.h
@@ -85,7 +85,7 @@ typedef struct SwsOpIter {
/* Helper macros to make writing common function signatures less painful */
#define DECL_FUNC(NAME, ...)
\
- static av_always_inline void
\
+ av_always_inline static void
\
fn(NAME)(SwsOpIter *restrict iter, const SwsOpImpl *restrict impl,
\
pixel_t *restrict x, pixel_t *restrict y,
\
pixel_t *restrict z, pixel_t *restrict w,
\
@@ -112,12 +112,12 @@ typedef struct SwsOpIter {
/* Helper macros for common op setup code */
#define DECL_SETUP(NAME, PARAMS, OUT)
\
- static av_unused int fn(NAME)(const SwsImplParams *PARAMS,
\
+ av_unused static int fn(NAME)(const SwsImplParams *PARAMS,
\
SwsImplResult *OUT)
/* Helper macro for declaring kernel entry points */
#define DECL_IMPL(FUNC, NAME, TYPE, UOP, ...)
\
- static av_flatten void NAME##_c(SwsOpIter *restrict iter,
\
+ av_flatten static void NAME##_c(SwsOpIter *restrict iter,
\
const SwsOpImpl *restrict impl,
\
void *restrict x, void *restrict y,
\
void *restrict z, void *restrict w)
\
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]