Subject: bug#51705: 29.0.50; [PATCH] Fix compiler warnings building shr.el

From: Po Lu <[email-masked]>
Date: Tue, 09 Nov 2021 15:02:21 +0800

>From 9190a9923a83797db1f4b2c5d17866787c59c2eb Mon Sep 17 00:00:00 2001
From: Po Lu <[email-masked]>
Date: Tue, 9 Nov 2021 15:01:07 +0800
Subject: [PATCH] Fix compiler warning building net/shr.el without xwidget
 support

* lisp/net/shr.el (xwidget-webkit-execute-script): New function
declaration.
---
 lisp/net/shr.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 19d2d8a8e6..9b00ff6aa3 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1670,6 +1670,9 @@ shr--extract-best-source
                       pref (cdr ret)))))))))
   (cons url pref))
 
+(declare-function xwidget-webkit-execute-script "xwidget.c"
+                  (xwidget script &optional callback))
+
 (defun shr-tag-video (dom)
   (let ((image (dom-attr dom 'poster))
         (url (dom-attr dom 'src))
-- 
2.31.1

Thanks.