Skip to content

Commit 1fcb460

Browse files
joaotavorakarthink
authored andcommitted
Fix compilation warning in gptel-openai.el
* gptel-openai.el (cl-lib): Require it. * gptel.el (compat): Leniently require compat so gptel.el can be compiled standalone. This will expose other compiler errors that are easily visible with M-x flymake.
1 parent 92a8c0b commit 1fcb460

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

gptel-openai.el

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
;;; Code:
2525
(require 'cl-generic)
26+
(eval-when-compile
27+
(require 'cl-lib))
2628
(require 'map)
2729

2830
(defvar gptel-model)

gptel.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
(eval-when-compile
121121
(require 'subr-x)
122122
(require 'cl-lib))
123-
(require 'compat)
123+
(require 'compat nil t)
124124
(require 'url)
125125
(require 'json)
126126
(require 'map)

0 commit comments

Comments
 (0)