Ignore:
Timestamp:
Aug 17, 2014, 4:20:22 AM (5 years ago)
Author:
cameron
Message:

Cleanups to clear compiler warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re_nullable.cpp

    r3965 r4034  
    162162bool RE_Nullable::isNullable(RE* re)
    163163{
    164     if (CC* re_cc = dynamic_cast<CC*>(re))
    165     {
    166         return false;
    167     }
    168     else if (Name* re_name = dynamic_cast<Name*>(re))
    169     {
    170         return false;
    171     }
    172     else if (Start* re_start = dynamic_cast<Start*>(re))
    173     {
    174         return false;
    175     }
    176     else if (End* re_end = dynamic_cast<End*>(re))
    177     {
    178         return false;
    179     }
    180     else if (Seq* re_seq = dynamic_cast<Seq*>(re))
     164    if (Seq* re_seq = dynamic_cast<Seq*>(re))
    181165    {
    182166        return isNullableSeq(re_seq->GetREList());
     
    189173    {   
    190174        return re_rep->getLB() == 0 ? true : isNullable(re_rep->getRE());
     175    }
     176    else {
     177        return false;
    191178    }
    192179}
Note: See TracChangeset for help on using the changeset viewer.