Skip to content
  • Ben Pfaff's avatar
    Eliminate most shadowing for local variable names. · 71f21279
    Ben Pfaff authored
    
    
    Shadowing is when a variable with a given name in an inner scope hides a
    different variable with the same name in a surrounding scope.  This is
    generally undesirable because it can confuse programmers.  This commit
    eliminates most of it.
    
    Found with -Wshadow=local in GCC 7.  The repo is not really ready to enable
    this option by default because of a few cases that are harder to fix, and
    harmless, such as nested use of CMAP_FOR_EACH.
    
    Signed-off-by: default avatarBen Pfaff <blp@ovn.org>
    Acked-by: default avatarAndy Zhou <azhou@ovn.org>
    71f21279