1. trijezdci
  2. PQlib

Commits

Stanislav Kljuhhin  committed 39c7b6e

Fix warnings when compiling with clang -Wall

  • Participants
  • Parent commits 1c2d4a7
  • Branches default

Comments (0)

Files changed (1)

File PQ.c

View file
 
 #if (PQ_MAXIMUM_CAPACITY < PQ_MINIMUM_CAPACITY)
 #error PQ_MAXIMUM_CAPACITY must not be less than PQ_MINIMUM_CAPACITY
-#elif (PQ_MAXIMUM_CAPACITY >= ((1UL << 64) - 1))
+#elif (PQ_MAXIMUM_CAPACITY >= UINT64_MAX)
 #error PQ_MAXIMUM_CAPACITY must not exceed range of uint64_t
 #endif
 
     
     pq_s *this_queue = (pq_s *) queue;
     cardinal index, high_prio_index;
-    pq_data_t this_entry;
+    pq_data_t this_entry = NULL;
     
     // bail out if queue is NULL
     if (queue == NULL) {