Commits

Stanislav Kljuhhin committed 39c7b6e

Fix warnings when compiling with clang -Wall

Comments (0)

Files changed (1)

 
 #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) {