Commit 375e5b0
committed
Suppress some compiler warnings in recent commits.
Older versions of gcc tend to throw "variable might be clobbered by
`longjmp' or `vfork'" warnings whenever a variable is assigned in more than
one place and then used after the end of a PG_TRY block. That's reasonably
easy to work around in execute_extension_script, and the overhead of
unconditionally saving/restoring the GUC variables seems unlikely to be a
serious concern.
Also clean up logic in ATExecValidateConstraint to make it easier to read
and less likely to provoke "variable might be used uninitialized in this
function" warnings.1 parent 0bc0bd0 commit 375e5b0
2 files changed
+30
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
525 | | - | |
| 524 | + | |
| 525 | + | |
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| 538 | + | |
| 539 | + | |
538 | 540 | | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | 541 | | |
543 | 542 | | |
544 | 543 | | |
545 | | - | |
546 | 544 | | |
| 545 | + | |
| 546 | + | |
547 | 547 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | 548 | | |
552 | 549 | | |
553 | 550 | | |
554 | | - | |
555 | 551 | | |
556 | 552 | | |
557 | 553 | | |
| |||
631 | 627 | | |
632 | 628 | | |
633 | 629 | | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
643 | 636 | | |
644 | 637 | | |
645 | 638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5612 | 5612 | | |
5613 | 5613 | | |
5614 | 5614 | | |
5615 | | - | |
5616 | 5615 | | |
5617 | 5616 | | |
5618 | 5617 | | |
| 5618 | + | |
5619 | 5619 | | |
5620 | | - | |
5621 | 5620 | | |
5622 | 5621 | | |
5623 | 5622 | | |
5624 | 5623 | | |
5625 | | - | |
| 5624 | + | |
5626 | 5625 | | |
5627 | 5626 | | |
5628 | 5627 | | |
| |||
5634 | 5633 | | |
5635 | 5634 | | |
5636 | 5635 | | |
5637 | | - | |
5638 | | - | |
5639 | | - | |
5640 | | - | |
5641 | | - | |
5642 | | - | |
5643 | | - | |
| 5636 | + | |
| 5637 | + | |
| 5638 | + | |
| 5639 | + | |
| 5640 | + | |
| 5641 | + | |
5644 | 5642 | | |
5645 | 5643 | | |
5646 | | - | |
| 5644 | + | |
| 5645 | + | |
| 5646 | + | |
| 5647 | + | |
| 5648 | + | |
| 5649 | + | |
| 5650 | + | |
5647 | 5651 | | |
| 5652 | + | |
5648 | 5653 | | |
5649 | 5654 | | |
5650 | 5655 | | |
| |||
5671 | 5676 | | |
5672 | 5677 | | |
5673 | 5678 | | |
| 5679 | + | |
5674 | 5680 | | |
5675 | 5681 | | |
5676 | 5682 | | |
5677 | 5683 | | |
5678 | | - | |
5679 | 5684 | | |
5680 | | - | |
5681 | | - | |
5682 | | - | |
5683 | | - | |
5684 | | - | |
5685 | | - | |
5686 | | - | |
| 5685 | + | |
5687 | 5686 | | |
5688 | 5687 | | |
5689 | 5688 | | |
| |||
0 commit comments