Skip to content

Commit

Permalink
Merge pull request #2041 from moriarty/fix-fallthrough-common-io
Browse files Browse the repository at this point in the history
[gcc] fixes -Wimplicit-fallthrough: common/io.h
  • Loading branch information
SergioRAgostinho authored Oct 30, 2017
2 parents 0d43316 + 87e4a3b commit 315b0c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion common/include/pcl/common/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,14 @@ namespace pcl
return (pcl::PCLPointField::INT8);
if (type == 'U')
return (pcl::PCLPointField::UINT8);
break;

case 2:
if (type == 'I')
return (pcl::PCLPointField::INT16);
if (type == 'U')
return (pcl::PCLPointField::UINT16);
break;

case 4:
if (type == 'I')
Expand All @@ -188,12 +190,15 @@ namespace pcl
return (pcl::PCLPointField::UINT32);
if (type == 'F')
return (pcl::PCLPointField::FLOAT32);
break;

case 8:
return (pcl::PCLPointField::FLOAT64);

default:
return (-1);
break;

return (-1);
}
}

Expand Down

0 comments on commit 315b0c5

Please sign in to comment.