Commit 07fced38 authored by Axel Auweter's avatar Axel Auweter
Browse files

Some more fixes in cxx11flags.sh and removed some compiler warnings for simplemqttserver.cpp.

parent cfdc54f6
......@@ -33,8 +33,8 @@ fi
# Create a temporary file for the C++ compiler output.
tempdir=`basename $0`
TMPFILE1=`mktemp -t ${tempdir}` || exit 1
TMPFILE2=`mktemp -t ${tempdir}` || exit 1
TMPFILE1=`mktemp -t ${tempdir}.XXXXXXXXXXXXXXX` || exit 1
TMPFILE2=`mktemp -t ${tempdir}.XXXXXXXXXXXXXXX` || exit 1
# Test c++ 11 flags for g++...
if [ "$CFLAGSOK" -eq "0" ]; then
......@@ -43,7 +43,6 @@ test_cflags $@
if [ "$?" -eq "0" ]; then
echo $FLAGS
CFLAGSOK=1
goto
fi
fi
......
......@@ -117,7 +117,7 @@ void SimpleMQTTServer::start()
/*
* Start one accept thread per socket.
*/
for (int i=0; i<listenSockets.size(); i++)
for (unsigned int i=0; i<listenSockets.size(); i++)
acceptThreads.push_back(new SimpleMQTTServerAcceptThread(listenSockets[i]));
}
......@@ -175,7 +175,7 @@ SimpleMQTTServer::~SimpleMQTTServer()
/*
* Close all listen sockets.
*/
for (int i=0; i<listenSockets.size(); i++)
for (unsigned int i=0; i<listenSockets.size(); i++)
close(listenSockets[i]);
listenSockets.clear();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment