prevent gcc "suggest braces around empty body" warning, Swap #define's else

This commit is contained in:
don bright 2015-08-15 17:32:57 -07:00
parent 2454c10f0c
commit c62a61020b

View file

@ -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 )