diff mbox series

inet: Avoid label at end of compound statement in tst-if_nameindex

Message ID 87cym1ivwe.fsf@oldenburg.str.redhat.com
State New
Headers show
Series inet: Avoid label at end of compound statement in tst-if_nameindex | expand

Commit Message

Florian Weimer Aug. 21, 2024, 6:16 p.m. UTC
This fails to compile with GCC 8.

---
 inet/tst-if_nameindex.c | 1 +
 1 file changed, 1 insertion(+)


--

Comments

Carlos O'Donell Aug. 26, 2024, 1:21 p.m. UTC | #1
On 8/21/24 2:16 PM, Florian Weimer wrote:
> This fails to compile with GCC 8.
> 
> ---
>  inet/tst-if_nameindex.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/inet/tst-if_nameindex.c b/inet/tst-if_nameindex.c
> index b025cdb3a7..5b90560124 100644
> --- a/inet/tst-if_nameindex.c
> +++ b/inet/tst-if_nameindex.c
> @@ -105,6 +105,7 @@ do_test (void)
>        TEST_VERIFY (errno == ENODEV);
>  
>      not_this_one:
> +      ;
>      }
>  
>  
> 

This is a trivial fix IMO.

Please push this if it works.
diff mbox series

Patch

diff --git a/inet/tst-if_nameindex.c b/inet/tst-if_nameindex.c
index b025cdb3a7..5b90560124 100644
--- a/inet/tst-if_nameindex.c
+++ b/inet/tst-if_nameindex.c
@@ -105,6 +105,7 @@  do_test (void)
       TEST_VERIFY (errno == ENODEV);
 
     not_this_one:
+      ;
     }