mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/cc: remove unused arg in +cc/reload-compile-db
Appeases the byte-compiler (praise be!)
This commit is contained in:
@ -1,9 +1,9 @@
|
|||||||
;;; lang/cc/autoload.el -*- lexical-binding: t; -*-
|
;;; lang/cc/autoload.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +cc/reload-compile-db (&optional force-p)
|
(defun +cc/reload-compile-db ()
|
||||||
"Reload the current project's JSON compilation database."
|
"Reload the current project's JSON compilation database."
|
||||||
(interactive "P")
|
(interactive)
|
||||||
(unless (memq major-mode '(c-mode c++-mode objc-mode))
|
(unless (memq major-mode '(c-mode c++-mode objc-mode))
|
||||||
(user-error "Not a C/C++/ObjC buffer"))
|
(user-error "Not a C/C++/ObjC buffer"))
|
||||||
(unless (doom-project-has! "compile_commands.json")
|
(unless (doom-project-has! "compile_commands.json")
|
||||||
|
Reference in New Issue
Block a user