Fix
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 13 Sep 2013 17:23:00 +0000 (17:23 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 13 Sep 2013 17:23:00 +0000 (17:23 +0000)
/home/jmayer/work/wireshark/svn/trunk/echld/parent.c: In function ‘echld_terminate’:
/home/jmayer/work/wireshark/svn/trunk/echld/parent.c:305:5: error: suggest braces around empty body in ‘do’ statement [-Werror=empty-body]
  do ; while(sleep(1)); /* wait a full sec without signals */
     ^
cc1: all warnings being treated as errors

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@52011 f5534014-38df-0310-8fa8-9805f1628bb7

echld/parent.c

index c3c121f1d2b899773fb4d83ee8588c61e903361c..ce48f03547b136c15b7f24598ac9294ca5247881 100644 (file)
@@ -302,7 +302,7 @@ extern echld_state_t echld_terminate(void) {
        parent.closing = TRUE;
        PARENT_SEND(NULL,0,ECHLD_CLOSE_CHILD,++reqh_ids);
 
-       do ; while(sleep(1)); /* wait a full sec without signals */
+       do {;} while(sleep(1)); /* wait a full sec without signals */
 
        echld_cleanup();
        close(parent.dispatcher_fd);