On Monday 31 August 2009, Duane Ellis wrote:
> Committed this simple warning fix.
>
> --- arm_disassembler.c (revision 2657)
> +++ arm_disassembler.c (working copy)
> @@ -445,6 +445,9 @@
> unsigned rn = (opcode >> 16) & 0xf;
> char *type, *rot;
>
> + /* GCC 'uninitialized warning removal' */
> + type = rot = NULL;
> +
> switch ((opcode >> 24) & 0x3) {
> case 0:
> type = "B16";
Seems some versions of GCC don't understand that those
switch statements covered the entire input ranges ... :)
For the record: I prefer to see such spurious warnings
resolved without the needless assignment, by making one
of the "case" branches be "default".
- Dave
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development