forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbf9165b
committed
Declare a couple of variables inside not outside a PG_TRY block.
I went through the buildfarm's reports of "warning: variable 'foo'might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]". As usual,none of them are live problems according to my understanding of theeffects of setjmp/longjmp, to wit that local variables might revertto their values as of PG_TRY entry, due to being kept in registers.But I did happen to notice that XmlTableGetValue's "cstr" variabledoesn't need to be declared outside the PG_TRY block at all (thusgiving further proof that the -Wclobbered warning has littleconnection to real problems). We might as well move it inside,and "cur" too, in hopes of eliminating one of the bogus warnings.1 parent530f89e commitbf9165b
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4926 | 4926 | | |
4927 | 4927 | | |
4928 | 4928 | | |
4929 | | - | |
4930 | 4929 | | |
4931 | | - | |
4932 | | - | |
| 4930 | + | |
4933 | 4931 | | |
4934 | 4932 | | |
4935 | 4933 | | |
| |||
4943 | 4941 | | |
4944 | 4942 | | |
4945 | 4943 | | |
4946 | | - | |
4947 | | - | |
4948 | 4944 | | |
4949 | 4945 | | |
4950 | 4946 | | |
4951 | 4947 | | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
4952 | 4951 | | |
| 4952 | + | |
4953 | 4953 | | |
4954 | 4954 | | |
4955 | 4955 | | |
| |||
0 commit comments
Comments
(0)