[PATCH v2] testsuits/dl10 : Prototype missing

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Sep 7 06:29:55 UTC 2020


On 31/08/2020 12:37, Aschref Ben-Thabet wrote:

> From: Aschref Ben Thabet <aschref.ben-thabet at embedded-brains.de>
>
> Add a prototype for the function rtems_main_o5 to avoid the prototype
> missing warning.

Please write it like this:

Add a prototype for the function rtems_main_o5() to avoid the prototype
missing warning.

> ---
>   testsuites/libtests/dl10/dl10-o6.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/testsuites/libtests/dl10/dl10-o6.c b/testsuites/libtests/dl10/dl10-o6.c
> index ab6deb189d..9a34640396 100644
> --- a/testsuites/libtests/dl10/dl10-o6.c
> +++ b/testsuites/libtests/dl10/dl10-o6.c
> @@ -7,10 +7,11 @@
>    */
>   
>   #include "dl-load.h"
> -
There is no need to remove this blank line.
>   #include <inttypes.h>
>   #include <rtems/test-info.h>
>   
> +int rtems_main_o5 (void);
> +
>   int rtems_main_o5 (void)
>   {
>     /* duplicate symbol in archive */


More information about the devel mailing list