- Notifications
You must be signed in to change notification settings - Fork5
Commit6cfd508
committed
Blindly try to fix a warning in s_lock.h when compiling with gcc on HPPA.
The possibly, depending on compiler settings, generated warning was"warning: `S_UNLOCK' redefined".The hppa spinlock implementation doesn't follow the rules of s_lock.hand provides a gcc specific implementation outside of the the part ofthe file that's supposed to do that. It does so to avoid duplicationbetween the HP compiler and gcc. That unfortunately means thatS_UNLOCK is already defined when the HPPA specific section is reached.Undefine the generic fallback S_UNLOCK definition inside the HPPAsection. That's far from pretty, but has the big advantage of beingsimple. If somebody is interested to fix this in a prettier way...This presumably got broken in the course of0709b7e.Discussion: 20150114225919.GY5245@awork2.anarazel.dePer complaint from Tom Lane.1 parent73a8f51 commit6cfd508
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
755 | 764 | | |
756 | 765 | | |
757 | 766 | | |
| |||
0 commit comments
Comments
(0)