Skip to content

warning: statement is unreachable #4666

@luotao1

Description

@luotao1

There are many warnings in develop branch:

/paddle/paddle/framework/data_type.h(31): warning: statement is unreachable 

which is caused by data_type.h#L30 and data_type.h#L31. We can remove one of these two lines:

PADDLE_THROW("Not supported"); return static_cast<DataType>(-1); 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions