From e72be58973ba92b3b66d51d622cddc5f6f7e93bd Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Wed, 11 Apr 2012 10:10:52 +0200 Subject: [PATCH] fixed compiler warnings --- BasicsC/process-utils.c | 5 +---- PriorityQueue/pqueueindex.c | 1 - VocBase/index.c | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/BasicsC/process-utils.c b/BasicsC/process-utils.c index b2ef0a960a..57d8974c00 100644 --- a/BasicsC/process-utils.c +++ b/BasicsC/process-utils.c @@ -152,12 +152,9 @@ TRI_process_info_t TRI_ProcessInfo (TRI_pid_t pid) { n = read(fd, str, 1024); close(fd); - // size_t is always >= 0, comparison will never be false - /* - if (n < 0) { + if (n == 0) { return result; } - */ sscanf(str, "%d %s %c %d %d %d %d %d %u %lu %lu %lu %lu %lu %lu %lu %ld %ld %ld %ld %ld %llu %lu %ld", &st.pid, (char*) &st.comm, &st.state, &st.ppid, &st.pgrp, &st.session, &st.tty_nr, &st.tpgid, diff --git a/PriorityQueue/pqueueindex.c b/PriorityQueue/pqueueindex.c index 7647ffed3b..173a066e0c 100755 --- a/PriorityQueue/pqueueindex.c +++ b/PriorityQueue/pqueueindex.c @@ -137,7 +137,6 @@ PQIndex* PQueueIndex_new (void) { PQIndex* idx; bool ok; - char* hiddenStructure; // .......................................................................... // Allocate the Priority Que Index diff --git a/VocBase/index.c b/VocBase/index.c index 2ad19b13ca..65d20de37c 100644 --- a/VocBase/index.c +++ b/VocBase/index.c @@ -2303,7 +2303,6 @@ PQIndexElements* TRI_LookupPriorityQueueIndex(TRI_index_t* idx, TRI_json_t* para TRI_priorityqueue_index_t* pqIndex; PQIndexElements* result; - TRI_shaper_t* shaper; size_t j; uint64_t numElements; TRI_json_t* jsonObject; @@ -2340,7 +2339,6 @@ PQIndexElements* TRI_LookupPriorityQueueIndex(TRI_index_t* idx, TRI_json_t* para } - shaper = pqIndex->base._collection->_shaper; numElements = 0; for (j = 0; j < parameterList->_value._objects._length; ++j) {