Fix compiler warning

* lisp/pdf-view.el (bookmark-make-record-function): Add defvar for compiler.