Skip to content

Commit

Permalink
* src/clj/cljs/closure.clj: CLJS-323: add compiler build :warnings tr…
Browse files Browse the repository at this point in the history
…ue option
  • Loading branch information
David Nolen authored and David Nolen committed Jun 23, 2012
1 parent 16863e3 commit d4671a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clj/cljs/closure.clj
Expand Up @@ -871,7 +871,9 @@
(binding [ana/*cljs-static-fns*
(or (and (= (opts :optimizations) :advanced))
(:static-fns opts)
ana/*cljs-static-fns*)]
ana/*cljs-static-fns*)
ana/*cljs-warn-on-undeclared*
(true? (opts :warnings))]
(let [compiled (-compile source all-opts)
compiled (concat
(if (coll? compiled) compiled [compiled])
Expand Down

0 comments on commit d4671a9

Please sign in to comment.