Commit 87320db
committed
[v2.2.x] prov/psm3: Suppress "this statement may fall through" warning
Compiler warning:
```
../prov/psm3/psm3/ptl_ips/ips_proto_connect.c: In function ‘ips_proto_build_connect_message’:
../prov/psm3/psm3/ptl_ips/ips_proto_connect.c:950:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (! force)
^
../prov/psm3/psm3/ptl_ips/ips_proto_connect.c:953:2: note: here
case OPCODE_DISCONNECT_REPLY:
^~~~
```
gcc can identify intentional fallthrough via comment, but the original
comment has an extra 'S'.
There are other approaches to address the same issue. However, none of
those are univerally supported. Here we just take the simplest fix by
removing the extra 'S' in the comment.
Signed-off-by: Jianxin Xiong <[email protected]>1 parent aac0bec commit 87320db
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
| 952 | + | |
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| |||
0 commit comments