fix warning: 'return' with no value in function startPLC
authorctbenergy <ewald.weinahndl@gmail.com>
Sat, 19 Nov 2016 23:42:49 +0100
changeset 1573 6dbc61e3dd65
parent 1572 078c760620d7
child 1574 ce9c0e68389c
fix warning: 'return' with no value in function startPLC
targets/Win32/plc_Win32_main.c
--- a/targets/Win32/plc_Win32_main.c	Sat Nov 19 22:20:19 2016 +0100
+++ b/targets/Win32/plc_Win32_main.c	Sat Nov 19 23:42:49 2016 +0100
@@ -84,7 +84,7 @@
     if (debug_sem == NULL)
     {
         printf("startPLC CreateSemaphore debug_sem error: %d\n", GetLastError());
-        return;
+        return 1;
     }
 
     debug_wait_sem = CreateSemaphore(
@@ -96,7 +96,7 @@
     if (debug_wait_sem == NULL)
     {
         printf("startPLC CreateSemaphore debug_wait_sem error: %d\n", GetLastError());
-        return;
+        return 1;
     }
 
     python_sem = CreateSemaphore(
@@ -108,7 +108,7 @@
     if (python_sem == NULL)
     {
         printf("startPLC CreateSemaphore python_sem error: %d\n", GetLastError());
-        return;
+        return 1;
     }
     python_wait_sem = CreateSemaphore(
                             NULL,           // default security attributes
@@ -120,7 +120,7 @@
     if (python_wait_sem == NULL)
     {
         printf("startPLC CreateSemaphore python_wait_sem error: %d\n", GetLastError());
-        return;
+        return 1;
     }