Skip to content

Commit

Permalink
Fix a dbus.el byte compilation warning
Browse files Browse the repository at this point in the history
* lisp/net/dbus.el (dbus-register-monitor): Silence a
byte-compilation warning on systems without dbus.
  • Loading branch information
larsmagne committed Mar 28, 2021
1 parent 216c65b commit ee3a4e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lisp/net/dbus.el
Expand Up @@ -2029,8 +2029,9 @@ either a method name, a signal name, or an error name."
",")
rule (or rule ""))

(unless (ignore-errors (dbus-get-unique-name bus-private))
(dbus-init-bus bus 'private))
(when (fboundp 'dbus-get-unique-name)
(unless (ignore-errors (dbus-get-unique-name bus-private))
(dbus-init-bus bus 'private)))
(dbus-call-method
bus-private dbus-service-dbus dbus-path-dbus dbus-interface-monitoring
"BecomeMonitor" `(:array :string ,rule) :uint32 0)
Expand Down

0 comments on commit ee3a4e3

Please sign in to comment.