]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - qnx/src/api/gates/GateMutex.c
Eliminate build warnings in QNX build
[ipc/ipcdev.git] / qnx / src / api / gates / GateMutex.c
index 514afbcf922986e0ecf58c07056e8b6225a05fd5..32608ab367e33f84a50e55f78c1d2544f62c358b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Texas Instruments Incorporated
+ * Copyright (c) 2013-2015, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -128,10 +128,14 @@ IArg GateMutex_enter (GateMutex_Handle gmHandle)
 Void GateMutex_leave (GateMutex_Handle gmHandle, IArg key)
 {
     GateMutex_Object * obj = (GateMutex_Object *)gmHandle;
+#if defined(IPC_BUILD_DEBUG)
     int ret;
 
     ret = pthread_mutex_unlock(&(obj->mutex));
     assert(ret == 0);
+#else
+    pthread_mutex_unlock(&(obj->mutex));
+#endif
 }