• Jean-Christophe Fillion-Robin's avatar
    Style: Fix -Wunused-but-set-variable in test_stream_exceeds_buffer.cpp · 46b02338
    Jean-Christophe Fillion-Robin authored
    This commit addresses the following warnings reported on gcc 5.2.1. In
    the future, this will help reduce the "noise" and help catch warnings
    revealing a serious problem.
    
    8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
    /path/to/libzmq/tests/test_stream_exceeds_buffer.cpp: In function ‘int main()’:
    /path/to/libzmq/tests/test_stream_exceeds_buffer.cpp:19:9: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
         int rc = setsockopt(server_sock, SOL_SOCKET, SO_REUSEADDR, &enable, sizeof(enable));
             ^
    8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
    46b02338
test_stream_exceeds_buffer.cpp 2.06 KB