Skip to content

Commit 0d4d986

Browse files
gpaulsenbwbarrett
authored andcommitted
Fixing 'make check' test opal_fifo.
xlc on ppc64le complains about incompatible pointer types discards qualifiers. This fix allows 'make check' to pass on ppc64le Power9 for master and v3.1.x. > opal_fifo.c:110:26: warning: assigning to 'opal_list_item_t *' (aka 'struct opal_list_item_t *') from > 'volatile opal_list_item_t *volatile' (aka 'volatile struct opal_list_item_t *volatile') discards qualifiers > [-Wincompatible-pointer-types-discards-qualifiers] > for (count = 0, item = fifo->opal_fifo_head.data.item ; item != &fifo->opal_fifo_ghost ; > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 1 warning generated. Signed-off-by: Geoffrey Paulsen <[email protected]> (cherry picked from commit cc9f713)
1 parent 216471a commit 0d4d986

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/class/opal_fifo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/*
33
* Copyright (c) 2014 Los Alamos National Security, LLC. All rights
44
* reserved.
5+
* Copyright (c) 2018 IBM Corporation. All rights reserved.
56
* $COPYRIGHT$
67
*
78
* Additional copyrights may follow
@@ -103,7 +104,7 @@ static void *thread_test_exhaust (void *arg) {
103104

104105
static bool check_fifo_consistency (opal_fifo_t *fifo, int expected_count)
105106
{
106-
opal_list_item_t *item;
107+
volatile opal_list_item_t *volatile item;
107108
int count;
108109

109110
for (count = 0, item = fifo->opal_fifo_head.data.item ; item != &fifo->opal_fifo_ghost ;

0 commit comments

Comments
 (0)