mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix a few deprecation warnings when building and testing with guile 2
This commit is contained in:
parent
4e61f0fc9f
commit
9f15bb19fd
@ -7,8 +7,12 @@ exec @GUILE@ -s $0 "$@"
|
||||
;; library-dirs
|
||||
|
||||
(use-modules (srfi srfi-13) (srfi srfi-14)) ;; for string-tokenize
|
||||
;; 'debug is deprecated and unused since guile 2
|
||||
(cond-expand
|
||||
(guile-2 )
|
||||
(else
|
||||
(debug-enable 'debug)))
|
||||
(debug-enable 'backtrace)
|
||||
(debug-enable 'debug)
|
||||
(read-enable 'positions)
|
||||
|
||||
;; Are we on MS Windows here? If yes, make this a #t.
|
||||
|
@ -34,7 +34,11 @@
|
||||
(gnc:module-load "gnucash/app-utils" 0)
|
||||
(use-modules (gnucash report standard-reports))
|
||||
(use-modules (gnucash report business-reports))
|
||||
(use-modules (ice-9 syncase)) ; for define-syntax
|
||||
; Syncase is deprecated and redundant in guile 2
|
||||
(cond-expand
|
||||
(guile-2 )
|
||||
(else
|
||||
(use-modules (ice-9 syncase)))) ; for define-syntax
|
||||
|
||||
|
||||
;(use-modules (srfi srfi-13)) ; for extra string functions
|
||||
|
@ -8,7 +8,11 @@
|
||||
(use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing.
|
||||
(use-modules (gnucash gnc-module))
|
||||
|
||||
(debug-enable 'debug)
|
||||
;; 'debug is deprecated and unused since guile 2
|
||||
(cond-expand
|
||||
(guile-2 )
|
||||
(else
|
||||
(debug-enable 'debug)))
|
||||
(debug-enable 'backtrace)
|
||||
|
||||
(gnc:module-load "gnucash/report/report-system" 0)
|
||||
|
@ -62,13 +62,17 @@
|
||||
;; Do this stuff very early -- but other than that, don't add any
|
||||
;; executable code until the end of the file if you can help it.
|
||||
;; These are needed for a guile 1.3.4 bug
|
||||
(debug-enable 'debug)
|
||||
(debug-enable 'backtrace)
|
||||
(read-enable 'positions)
|
||||
|
||||
;; maxdepth doesn't exist in guile 2 and onwards:
|
||||
(if (< (string->number (major-version)) 2)
|
||||
(debug-set! maxdepth 100000))
|
||||
;; These options should only be set for guile < 2.0
|
||||
;; 'debug (deprecated and unused since guile 2)
|
||||
;; maxdepth (removed since guile 2)
|
||||
(cond-expand
|
||||
(guile-2 )
|
||||
(else
|
||||
(debug-enable 'debug)
|
||||
(debug-set! maxdepth 100000)))
|
||||
(debug-set! stack 200000)
|
||||
|
||||
;; Initalialize localization, otherwise reports may output
|
||||
|
Loading…
Reference in New Issue
Block a user