prevent gcc "suggest braces around empty body" warning, Swap #define's else
This commit is contained in:
parent
2454c10f0c
commit
c62a61020b
1 changed files with 4 additions and 1 deletions
|
|
@ -334,7 +334,10 @@ void pqDeletePriorityQ( TESSalloc* alloc, PriorityQ *pq )
|
|||
|
||||
#define LT(x,y) (! LEQ(y,x))
|
||||
#define GT(x,y) (! LEQ(x,y))
|
||||
#define Swap(a,b) if(1){PQkey *tmp = *a; *a = *b; *b = tmp;}else
|
||||
void Swap(a,b)
|
||||
{
|
||||
PQkey *tmp = *a; *a = *b; *b = tmp;
|
||||
}
|
||||
|
||||
/* really tessPqSortInit */
|
||||
int pqInit( TESSalloc* alloc, PriorityQ *pq )
|
||||
|
|
|
|||
Loading…
Reference in a new issue