mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Warn about unreachable code.
This commit is contained in:
@@ -7,6 +7,8 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (103-106): Unreachable code.
|
||||
// Warning: (144-152): Unreachable code.
|
||||
// Warning: (33-42): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
||||
// Warning: (122-131): Unused local variable.
|
||||
// Warning: (20-169): Function state mutability can be restricted to pure
|
||||
|
||||
@@ -7,6 +7,7 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (144-152): Unreachable code.
|
||||
// Warning: (37-46): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
||||
// Warning: (122-131): Unused local variable.
|
||||
// Warning: (24-177): Function state mutability can be restricted to pure
|
||||
|
||||
@@ -6,6 +6,8 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (89-92): Unreachable code.
|
||||
// Warning: (130-138): Unreachable code.
|
||||
// Warning: (33-42): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
||||
// Warning: (108-117): Unused local variable.
|
||||
// Warning: (20-155): Function state mutability can be restricted to pure
|
||||
|
||||
@@ -5,3 +5,4 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (105-113): Unreachable code.
|
||||
|
||||
Reference in New Issue
Block a user