1
0
Fork 0

fixed compiler warnings

This commit is contained in:
Jan Steemann 2012-04-11 10:10:52 +02:00
parent 9e87d18161
commit e72be58973
3 changed files with 1 additions and 7 deletions

View File

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

View File

@ -137,7 +137,6 @@ PQIndex* PQueueIndex_new (void) {
PQIndex* idx;
bool ok;
char* hiddenStructure;
// ..........................................................................
// Allocate the Priority Que Index

View File

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