Skip to content

Commit a4039d4

Browse files
committed
Add "void" to empty function param list
Fix compiler warnings by changing "()" to "(void)" in some function definitions. Signed-off-by: Jeff Squyres <jeff@squyres.com>
1 parent 7741cd8 commit a4039d4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

opal/mca/btl/template/btl_template_component.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* reserved.
1515
* Copyright (c) 2020 Amazon.com, Inc. or its affiliates.
1616
* All Rights reserved.
17+
* Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
1718
* $COPYRIGHT$
1819
*
1920
* Additional copyrights may follow
@@ -143,7 +144,7 @@ mca_btl_base_module_t **mca_btl_template_component_init(int *num_btl_modules,
143144
* TEMPLATE component progress.
144145
*/
145146

146-
int mca_btl_template_component_progress()
147+
int mca_btl_template_component_progress(void)
147148
{
148149
return 0;
149150
}

opal/runtime/opal_info_support.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* Copyright (c) 2021 Nanook Consulting. All rights reserved.
2121
* Copyright (c) 2022 Computer Architecture and VLSI Systems (CARV)
2222
* Laboratory, ICS Forth. All rights reserved.
23+
* Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
2324
* $COPYRIGHT$
2425
*
2526
* Additional copyrights may follow
@@ -842,12 +843,12 @@ void opal_info_show_mca_params(const char *type, const char *component,
842843
}
843844
}
844845

845-
void opal_info_do_arch()
846+
void opal_info_do_arch(void)
846847
{
847848
opal_info_out("Configured architecture", "config:arch", OPAL_ARCH);
848849
}
849850

850-
void opal_info_do_hostname()
851+
void opal_info_do_hostname(void)
851852
{
852853
opal_info_out("Configure host", "config:host", OPAL_CONFIGURE_HOST);
853854
}

0 commit comments

Comments
 (0)