application.ex: disable warnings_as_errors at runtime
authorrinpatch <rinpatch@sdf.org>
Tue, 1 Sep 2020 06:08:54 +0000 (09:08 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 1 Sep 2020 06:08:54 +0000 (09:08 +0300)
see changed files for rationale

lib/pleroma/application.ex

index c0b5db9f16affbe235595194f114a5b315ceb443..005aba50aace90eccac4926d15d4705651835679 100644 (file)
@@ -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()