- Notifications
You must be signed in to change notification settings - Fork5.3k
Commitd26997c
committed
Avoid mixing void and integer in a conditional expression.
The C standard says that the second and third arguments of aconditional operator shall be both void type or both not-voidtype. The Windows version of INTERRUPTS_PENDING_CONDITION()got this wrong. It's pretty harmless because the result ofthe operator is ignored anyway, but apparently recent versionsof MSVC have started issuing a warning about it. Silence thewarning by casting the dummy zero to void.Reported-by: Christian Ullrich <chris@chrullrich.net>Author: Bryan Green <dbryan.green@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/cc4ef8db-f8dc-4347-8a22-e7ebf44c0308@chrullrich.netBackpatch-through: 131 parent4c0b7bd commitd26997c
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
0 commit comments
Comments
(0)