From: rinpatch Date: Tue, 1 Sep 2020 06:08:54 +0000 (+0300) Subject: application.ex: disable warnings_as_errors at runtime X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=dc3a418c270e48c6849159097f8bba57d2a2578e;p=akkoma application.ex: disable warnings_as_errors at runtime see changed files for rationale --- diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index c0b5db9f1..005aba50a 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -39,6 +39,9 @@ defmodule Pleroma.Application do # every time the application is restarted, so we disable module # conflicts at runtime Code.compiler_options(ignore_module_conflict: true) + # Disable warnings_as_errors at runtime, it breaks Phoenix live reload + # due to protocol consolidation warnings + Code.compiler_options(warnings_as_errors: false) Pleroma.Telemetry.Logger.attach() Config.Holder.save_default() Pleroma.HTML.compile_scrubbers()