From: Clifford Wolf Date: Tue, 24 Feb 2015 10:01:00 +0000 (+0100) Subject: Fixed compilation problems with gcc 4.6.3; use enum instead of const ints. X-Git-Tag: yosys-0.6~391 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81fa4e81a60ffee742c676ab68deefa15495aab9;p=yosys.git Fixed compilation problems with gcc 4.6.3; use enum instead of const ints. (original patch by Andrew Becker ) --- diff --git a/passes/proc/proc_dlatch.cc b/passes/proc/proc_dlatch.cc index 228f518c5..e1bbab545 100644 --- a/passes/proc/proc_dlatch.cc +++ b/passes/proc/proc_dlatch.cc @@ -78,8 +78,10 @@ struct proc_dlatch_db_t } }; - const int true_node = 1; - const int false_node = 2; + enum tf_node_types_t : int { + true_node = 1, + false_node = 2 + }; idict rules_db; dict rules_sig;