From 3d80f05940effd18b19f3fb188645c3ddee4a12a Mon Sep 17 00:00:00 2001 From: Timothy Sample Date: Mon, 20 May 2019 01:01:22 -0400 Subject: [PATCH] Fix readline-related compiler warnings. * gash/gash.scm: Use the readline module at expansion time too, so that the compiler can see it. --- gash/gash.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gash/gash.scm b/gash/gash.scm index 38c60e7..3b48dcc 100644 --- a/gash/gash.scm +++ b/gash/gash.scm @@ -36,10 +36,11 @@ #:use-module (srfi srfi-26) #:export (main)) -(catch #t - (lambda _ (use-modules (ice-9 readline))) - (lambda (key . args) - (use-modules (gash readline)))) +(eval-when (expand load eval) + (catch #t + (lambda _ (use-modules (ice-9 readline))) + (lambda (key . args) + (use-modules (gash readline))))) (define (display-help) (display (string-append "\