0024284: Some trivial warnings produced by ICC 14
[occt.git] / src / Draw / Draw_Window.cxx
index af3c796..63e2e87 100755 (executable)
@@ -1396,7 +1396,6 @@ LRESULT APIENTRY DrawWindow::DrawProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARA
       localObjet->WExpose();
       localObjet->Redraw();
       return 0l;
-      break;
     }
 
   default:
@@ -1405,7 +1404,6 @@ LRESULT APIENTRY DrawWindow::DrawProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARA
     else
       return(DefMDIChildProc(hWnd, wMsg, wParam, lParam));
   }
-  return (0l);
 }
 
 
@@ -2025,11 +2023,8 @@ Standard_Boolean Init_Appli(HINSTANCE hInst,
    ** Enter the application message-polling loop.  This is the anchor for
    ** the application.
   */
-  if(Draw_IsConsoleSubsystem)
-
-    hWndFrame = NULL;
-
-  else if (hWndFrame = CreateAppWindow(hInst))
+  hWndFrame = !Draw_IsConsoleSubsystem ? CreateAppWindow (hInst) : NULL;
+  if (hWndFrame != NULL)
   {
     ShowWindow(hWndFrame,nShow);
     UpdateWindow(hWndFrame);
@@ -2046,18 +2041,14 @@ Standard_Boolean Draw_Interprete (const char*);
 static DWORD WINAPI readStdinThreadFunc(VOID)
 {
   if (!Draw_IsConsoleSubsystem) return 1;
-
   for(;;) {
     while (console_semaphore != WAIT_CONSOLE_COMMAND)
       Sleep(100);
-    //if (gets(console_command))
-       if (fgets(console_command,COMMAND_SIZE,stdin))
+      if (fgets(console_command,COMMAND_SIZE,stdin))
       {
         console_semaphore = HAS_CONSOLE_COMMAND;
       }
-
   }
-  return 0;
 }
 
 /*--------------------------------------------------------*\