Skip to content

Commit 60609cb

Browse files
committed
orte/test/system: fix compiler warnings
Note that the opal_hotel test still doesn't compile; it looks like it needs to be updated to the new requirement to pass an event base.
1 parent ac54712 commit 60609cb

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

orte/test/system/binom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static void construct(orte_routed_tree_t *rt)
3030
rt->vpid = ORTE_VPID_INVALID;
3131
OBJ_CONSTRUCT(&rt->relatives, opal_bitmap_t);
3232
}
33-
static destruct(orte_routed_tree_t *rt)
33+
static void destruct(orte_routed_tree_t *rt)
3434
{
3535
OBJ_DESTRUCT(&rt->relatives);
3636
}

orte/test/system/mapper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*/
33

44
#include <stdio.h>
5+
#include <ctype.h>
56

67
#include "orte/constants.h"
78

orte/test/system/opal-evpri-test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#include <signal.h>
44
#include <stdbool.h>
55

6+
#include "opal/runtime/opal.h"
67
#include "opal/mca/event/event.h"
7-
88
#include "orte/mca/state/state_types.h"
99

1010
#define SIGPRI 0
@@ -62,7 +62,7 @@ main(int argc, char **argv)
6262
opal_event_t ev1, ev2;
6363
orte_state_caddy_t *caddy;
6464

65-
opal_init();
65+
opal_init(&argc, &argv);
6666

6767
/* assign some signal traps */
6868
if (opal_event_signal_set(orte_event_base, &ev1, SIGTERM, cbfunc, &ev1) < 0) {

orte/test/system/opal_interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main(int argc, char* argv[])
2929

3030
if (OPAL_SUCCESS != mca_base_framework_open(&opal_if_base_framework, 0)) {
3131
fprintf(stderr, "opal_interface: couldn't get interfaces\n");
32-
return;
32+
return 1;
3333
}
3434

3535
for (intf = (opal_if_t*)opal_list_get_first(&opal_if_list);

orte/test/system/radix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ int down_search(int me, int num_procs,
7070
}
7171
}
7272

73-
main(int argc, char **argv)
73+
int main(int argc, char **argv)
7474
{
7575
opal_list_t children;
7676
opal_list_item_t *item;

orte/test/system/regex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "orte/mca/errmgr/errmgr.h"
1616
#include "orte/runtime/runtime.h"
1717

18-
main(int argc, char **argv)
18+
int main(int argc, char **argv)
1919
{
2020
int rc;
2121
char *regex, *save;

0 commit comments

Comments
 (0)