瀏覽代碼

COMP:Try to fix compile error with qnx gcc.

Francois Bertel 16 年之前
父節點
當前提交
257937f2bd
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/kwsys/ProcessUNIX.c

+ 2 - 1
Source/kwsys/ProcessUNIX.c

@@ -2137,10 +2137,11 @@ static void kwsysProcessChildErrorExit(int errorPipe)
 {
   /* Construct the error message.  */
   char buffer[KWSYSPE_PIPE_BUFFER_SIZE];
+  kwsysProcess_ssize_t result;
   strncpy(buffer, strerror(errno), KWSYSPE_PIPE_BUFFER_SIZE);
 
   /* Report the error to the parent through the special pipe.  */
-  kwsysProcess_ssize_t result=write(errorPipe, buffer, strlen(buffer));
+  result=write(errorPipe, buffer, strlen(buffer));
   (void)result;
 
   /* Terminate without cleanup.  */