Skip to content

Commit

Permalink
Merge pull request #9937 from dnakamura/port_retval
Browse files Browse the repository at this point in the history
Port: silence warning about ignored return value
  • Loading branch information
DanHeidinga committed Jun 18, 2020
2 parents 0adc2b5 + 5a9ced9 commit 84f004b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 2 additions & 9 deletions runtime/port/module.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright (c) 2006, 2019 IBM Corp. and others
Copyright (c) 2006, 2020 IBM Corp. and others
This program and the accompanying materials are made available under
the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -220,14 +220,7 @@
</includes>

<makefilestubs>
<makefilestub data="UMA_TREAT_WARNINGS_AS_ERRORS=1">
<exclude-if condition="spec.linux_ppc.*"/>

<!-- Provisionally ignore the warning until RTC #132065 is resolved. -->
<exclude-if condition="spec.linux_390.*" />
<exclude-if condition="spec.linux_390-64.*" />
</makefilestub>

<makefilestub data="UMA_TREAT_WARNINGS_AS_ERRORS=1"/>
<makefilestub data="OMRPORT_SRCDIR=$(OMR_DIR)/port/" />

<makefilestub data="ifdef I5_VERSION">
Expand Down
6 changes: 3 additions & 3 deletions runtime/port/unix/j9process.c
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1991, 2019 IBM Corp. and others
* Copyright (c) 1991, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -383,7 +383,7 @@ j9process_create(struct J9PortLibrary *portLibrary, const char *command[], uintp
}

/* if we get here ==> tell the parent that the execv failed ! Send the error number. */
write(forkedChildProcess[1], &errno, sizeof(errno));
J9_IGNORE_RETURNVAL(write(forkedChildProcess[1], &errno, sizeof(errno)));
close(forkedChildProcess[0]);
close(forkedChildProcess[1]);
/* If the exec failed, we must exit or there will be two VM processes running. */
Expand Down Expand Up @@ -461,7 +461,7 @@ j9process_create(struct J9PortLibrary *portLibrary, const char *command[], uintp

/* let the forked child start. */
close(forkedChildProcess[1]);
read(forkedChildProcess[0], &dummy, 1);
J9_IGNORE_RETURNVAL(read(forkedChildProcess[0], &dummy, 1));

/* [PR CMVC 143339] OTTBLD: jclmaxtest_jit_G1 Test_Runtime failure
* Instead of using timeout to determine if child process has been created successfully,
Expand Down

0 comments on commit 84f004b

Please sign in to comment.