Fixed compiler warning. default tip
authorRyan C. Gordon <icculus@icculus.org>
Tue, 01 Oct 2013 04:05:03 +0000
changeset 142 2b13ec4e6eae
parent 141 78e574af0a2e
Fixed compiler warning.
nph-offload.c
--- a/nph-offload.c	Tue Oct 01 04:03:21 2013 +0000
+++ b/nph-offload.c	Tue Oct 01 04:05:03 2013 +0000
@@ -248,12 +248,10 @@
 {
     void *retval = NULL;
     const int value = initialVal ? 0 : 1;
-    int created = 1;
 
     retval = sem_open("SEM-" SHM_NAME, O_CREAT | O_EXCL, 0600, value);
     if ((retval == (void *) SEM_FAILED) && (errno == EEXIST))
     {
-        created = 0;
         debugEcho("(semaphore already exists, just opening existing one.)");
         retval = sem_open("SEM-" SHM_NAME, 0);
     } // if