[Gnucash-changes] r13984 - gnucash/trunk/src/scm - Silence
guile warnings about duplicate binding introduced in guile-1.8.
Derek Atkins
warlord at MIT.EDU
Wed May 10 09:39:01 EDT 2006
Chris Shoemaker <chris at cvs.gnucash.org> writes:
> Modified: gnucash/trunk/src/scm/main.scm
> ===================================================================
> --- gnucash/trunk/src/scm/main.scm 2006-05-10 00:13:37 UTC (rev 13983)
> +++ gnucash/trunk/src/scm/main.scm 2006-05-10 01:53:24 UTC (rev 13984)
> @@ -17,6 +17,10 @@
>
> (define-module (gnucash main))
>
> +;; This is to silence warnings with guile-1.8:
> +(if (and (>= (string->number (major-version)) 1)
> + (>= (string->number (minor-version)) 8))
> + (default-duplicate-binding-handler 'last))
> (use-modules (ice-9 slib))
In case we care... This test will fail with guile 2.0. Granted, I
think we use this construct all over the place, but with 2.0 "close"
(well, closer..) we might want to consider changing the constructs to
works across the 1.8->2.0 changeover down the road. I suspect we
want something like:
(if (or (> (string->number (major-version)) 1)
(and (= (string->number (major-version)) 1)
(>= (string->number (minor-version)) 8)))
....
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list