File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -573,18 +573,15 @@ void c_typecheck_baset::typecheck_redefinition_non_type(
573
573
// see if we already have one
574
574
if (old_symbol.value .is_not_nil ())
575
575
{
576
- if (
577
- new_symbol.is_macro && final_new.id () == ID_c_enum &&
578
- old_symbol.value .is_constant () && new_symbol.value .is_constant () &&
579
- old_symbol.value .get (ID_value) == new_symbol.value .get (ID_value))
576
+ if (old_symbol.value == new_symbol.value )
580
577
{
581
578
// ignore
582
579
}
583
580
else
584
581
{
585
582
warning ().source_location = new_symbol.value .find_source_location ();
586
583
warning () << " symbol '" << new_symbol.display_name ()
587
- << " ' already has an initial value" << eom;
584
+ << " ' already has a different initial value" << eom;
588
585
}
589
586
}
590
587
else
You can’t perform that action at this time.
0 commit comments