Skip to content

Remove duplicate typedef in tests downcall.h - #15133

Merged
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
pshipton:dupstruct
May 27, 2022
Merged

Remove duplicate typedef in tests downcall.h#15133
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
pshipton:dupstruct

Conversation

@pshipton

Copy link
Copy Markdown
Member

The following dup is removed:
typedef struct stru_Byte_Byte_Byte stru_Byte_Byte_Byte;

It fails to compile on the latest xlC 16.1.0.7 on AIX.

The following dup is removed:
typedef struct stru_Byte_Byte_Byte stru_Byte_Byte_Byte;

It fails to compile on the latest xlC 16.1.0.7 on AIX.

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
@pshipton

Copy link
Copy Markdown
Member Author

@ChengJin01 fyi

@pshipton
pshipton requested a review from keithc-ca May 27, 2022 18:01
@pshipton

pshipton commented May 27, 2022

Copy link
Copy Markdown
Member Author

fyi testing is done internally at /view/OpenJ9%20-%20Personal/job/Pipeline-Build-Test-Personal/13060/
Without this change the build failed to compile.
Related to updating the xlC version runtimes/infrastructure/issues/6768#issuecomment-44319561

18:00:44  /home/jenkins/workspace/Build_JDK11_ppc64_aix_Personal/openj9/runtime/tests/clinkerffi/downcall.h:54:36: error: redefinition of typedef 'stru_Byte_Byte_Byte' is a C11 feature [-Werror,-Wtypedef-redefinition]
18:00:44  typedef struct stru_Byte_Byte_Byte stru_Byte_Byte_Byte;
18:00:44                                     ^
18:00:44  /home/jenkins/workspace/Build_JDK11_ppc64_aix_Personal/openj9/runtime/tests/clinkerffi/downcall.h:47:36: note: previous definition is here
18:00:44  typedef struct stru_Byte_Byte_Byte stru_Byte_Byte_Byte;
18:00:44                                     ^
18:00:44  1 error generated.
18:00:44  Error while processing /home/jenkins/workspace/Build_JDK11_ppc64_aix_Personal/openj9/runtime/tests/clinkerffi/downcall.c.

Comment thread runtime/tests/clinkerffi/downcall.h
@keithc-ca

Copy link
Copy Markdown
Contributor

Tested change locally as well.

@keithc-ca
keithc-ca merged commit 92d45ee into eclipse-openj9:master May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants