Derek Chiang
Derek Chiang

Reputation: 3410

Disable compiler warnings for a specific file in ClojureScript

I have a file that's defining functions like map and I'm getting compiler warnings like:

map already refers to: cljs.core/map being replaced by: 

So I'd like to disable this warning, but I only want to disable the warning for this particular file. Is that possible?

Upvotes: 1

Views: 347

Answers (1)

akond
akond

Reputation: 16060

You can disable compiler warnings for the whole project only. There is no fine control over that. But you can change your code so it does not generate this warning:

(ns testground.core
    (:refer-clojure :exclude [map]))

Upvotes: 2

Related Questions