[#841] Fixed an -O3 warning in sockComm