qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 2/3] dyngen: fix some warnings about unused func


From: Anthony Liguori
Subject: [Qemu-devel] Re: [PATCH 2/3] dyngen: fix some warnings about unused functions
Date: Thu, 13 Nov 2008 13:39:19 -0600
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

Mark McLoughlin wrote:
Warnings were:

  dyngen.c:292: error: ‘pstrcpy’ defined but not used

Only used with CONFIG_FORMAT_COFF

  dyngen.c:319: error: ‘swab32ss’ defined but not used

With ELF_USES_RELOCA, either swab32ss() or swab64ss() will
be used depending on ELF_CLASS. Easier to just mark them
both as unused.

  dyngen.c:334: error: ‘get16’ defined but not used
  dyngen.c:343: error: ‘get32’ defined but not used
  dyngen.c:352: error: ‘put16’ defined but not used
  dyngen.c:359: error: ‘put32’ defined but not used

Maybe be used for some host arches; easiest to mark them as
unused.

  dyngen.c:425: error: ‘elf_swap_phdr’ defined but not used

This one is completely unused; just delete.

Since dyngen is going away soon, I'm not eager to make changes to it that could possibly break on some weird architecture. Do you think it would be terrible to just ignore this for now?

If someone else is more confident that this is okay, I think it's fine to commit.

Regards,

Anthony Liguori





reply via email to

[Prev in Thread] Current Thread [Next in Thread]