This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 120987543aec040721c9e2b3a983c772b3464049
Author:     Ayose <[email protected]>
AuthorDate: Sun Dec 7 22:57:22 2025 +0000
Commit:     Marton Balint <[email protected]>
CommitDate: Sun Jan 4 13:42:20 2026 +0000

    avfilter/tests/drawvg: fix warnings on WIN32
    
    The compiler was emitting a warning on every Cairo function replaced by
    the `MOCK_FN_n` macros:
    
        warning: 'cairo_...': redeclared without dllimport attribute after
        being referenced with dll linkage
    
    The macro `CAIRO_WIN32_STATIC_BUILD` prevents the attribute `dllimport` on
    the declarations for these functions.
    
    Signed-off-by: Ayose <[email protected]>
---
 libavfilter/tests/drawvg.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/libavfilter/tests/drawvg.c b/libavfilter/tests/drawvg.c
index 9fb233d969..487b709ec5 100644
--- a/libavfilter/tests/drawvg.c
+++ b/libavfilter/tests/drawvg.c
@@ -16,6 +16,15 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+
+// Prevent the `dllimport` attribute in the functions declared by Cairo when
+// the test is built on a Windows machine.
+//
+// This is needed to avoid the "redeclared without dllimport attribute after
+// being referenced with dll linkage" warnings on every function redefined by
+// the `MOCK_FN_n` macros below.
+#define CAIRO_WIN32_STATIC_BUILD
+
 #include <cairo.h>
 #include <stdarg.h>
 #include <stdio.h>

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to