< prev index next >

src/jdk.jpackage/unix/native/libapplauncher/PosixPlatform.cpp

Print this page

        

@@ -93,11 +93,11 @@
 
     return result;
 }
 
 void PosixPlatform::SetCurrentDirectory(TString Value) {
-    chdir(StringToFileSystemString(Value));
+    int ignored = chdir(StringToFileSystemString(Value));
 }
 
 Module PosixPlatform::LoadLibrary(TString FileName) {
     return dlopen(StringToFileSystemString(FileName), RTLD_LAZY);
 }

@@ -210,13 +210,15 @@
                 exit(1);
             }
         } else if (count == 0) {
             // break;
         } else {
+/*
             if (buffer[count - 1] == EOF) {
                 buffer[count - 1] = '\0';
             }
+*/
 
             std::list<TString> output = Helpers::StringToArray(buffer);
             FOutput.splice(FOutput.end(), output, output.begin(), output.end());
             result = true;
         }

@@ -308,11 +310,11 @@
     return FChildPID;
 }
 
 void PosixProcess::SetInput(TString Value) {
     if (FInputHandle != 0) {
-        write(FInputHandle, Value.data(), Value.size());
+        ssize_t ignored = write(FInputHandle, Value.data(), Value.size());
     }
 }
 
 std::list<TString> PosixProcess::GetOutput() {
     ReadOutput();
< prev index next >