Hi Chet,

Martin just sent us this patch, which indedd looks trivial, but we
thought we'd run it by you first so you could apply it in the official
repository first if you agree. On our end, we'll apply the fix you
decide to apply.

Thank you both!

> when building GDB 7.6.1 in MinGW (Windows 7) for the arm-none-eabi
> target, I got compilation error in readline/util.c:392 --- missing
> semicolon after do { ... } while (...) loop. The attached patch fixes
> this trivial error.
> 
> 
> 2013-09-21  Martin Benda  <[email protected]>
> 
>       * readline/util.c: Add missing semicolon to fix compilation error
>       in environments with missing strcasecmp (e.g. MinGW).
> 
> 
> diff -Naur gdb-7.6.1/readline/util.c dist-patched/gdb-7.6.1/readline/util.c
> --- gdb-7.6.1/readline/util.c 2013-09-21 09:28:03.000000000 +0200
> +++ gdb-7.6.1-patched/readline/util.c 2013-09-21 09:41:12.000000000 +0200
> @@ -389,7 +389,7 @@
>        break;
>      s2++;
>    }
> -  while (--count != 0)
> +  while (--count != 0);
> 
>  return (0);
> }
> 
> 
> Martin Benda

> diff -Naur gdb-7.6.1/readline/util.c dist-patched/gdb-7.6.1/readline/util.c
> --- gdb-7.6.1/readline/util.c 2013-09-21 09:28:03.000000000 +0200
> +++ gdb-7.6.1-patched/readline/util.c 2013-09-21 09:41:12.000000000 +0200
> @@ -389,7 +389,7 @@
>          break;
>        s2++;
>      }
> -  while (--count != 0)
> +  while (--count != 0);
>  
>    return (0);
>  }

> 2013-09-21  Martin Benda  <[email protected]>
> 
>       * readline/util.c: Add missing semicolon to fix compilation error
>       in environments with missing strcasecmp (e.g. MinGW).


-- 
Joel

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to