From: Clifford Wolf Date: Sat, 3 Feb 2018 13:31:47 +0000 (+0100) Subject: Fixed gcc 7.2 "statement will never be executed" warning X-Git-Tag: yosys-0.8~223 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4f021890718d88973ea22764da23aa935e440fb;p=yosys.git Fixed gcc 7.2 "statement will never be executed" warning --- diff --git a/backends/ilang/ilang_backend.cc b/backends/ilang/ilang_backend.cc index 16d1a97f5..1f7f12361 100644 --- a/backends/ilang/ilang_backend.cc +++ b/backends/ilang/ilang_backend.cc @@ -219,7 +219,7 @@ void ILANG_BACKEND::dump_proc_sync(std::ostream &f, std::string indent, const RT { f << stringf("%s" "sync ", indent.c_str()); switch (sy->type) { - if (0) case RTLIL::ST0: f << stringf("low "); + case RTLIL::ST0: f << stringf("low "); if (0) case RTLIL::ST1: f << stringf("high "); if (0) case RTLIL::STp: f << stringf("posedge "); if (0) case RTLIL::STn: f << stringf("negedge ");