[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 00/32] virtio,pc: features, cleanups, fixes
|
From: |
Peter Maydell |
|
Subject: |
Re: [PULL 00/32] virtio,pc: features, cleanups, fixes |
|
Date: |
Sun, 6 Feb 2022 10:44:47 +0000 |
On Sun, 6 Feb 2022 at 09:29, Michael S. Tsirkin <mst@redhat.com> wrote:
>
> On Sat, Feb 05, 2022 at 09:05:12PM +0000, Peter Maydell wrote:
> > On the build-tsan and build-cfi-x86_64 jobs and also on macos
> > (this is a "clang is pickier than gcc about unused functions" one):
> > https://gitlab.com/qemu-project/qemu/-/jobs/2058536617
> > https://gitlab.com/qemu-project/qemu/-/jobs/2058536571
> >
> > ../tests/qtest/erst-test.c:91:20: error: unused function 'out_reg64'
> > [-Werror,-Wunused-function]
> > static inline void out_reg64(ERSTState *s, unsigned reg, uint64_t v)
> > ^
>
>
> That's a weird one - it's static inline, compiler should not warn I
> think. compiler bug? I can drop this for sure but still. Is this
> what we should be doing?
This is a gcc-vs-clang difference. gcc will not warn about any
unused "static inline" function. clang will not warn for them
in .h files but will warn for them in .c files.
In this case clang is entirely correct -- the function is defined
and never used, not even conditionally depending on #ifdefs.
thanks
-- PMM
- [PULL 30/32] ACPI ERST: bios-tables-test testcase, (continued)
- [PULL 30/32] ACPI ERST: bios-tables-test testcase, Michael S. Tsirkin, 2022/02/04
- [PULL 17/32] qmp: add QMP command x-query-virtio, Michael S. Tsirkin, 2022/02/04
- [PULL 20/32] qmp: add QMP commands for virtio/vhost queue-status, Michael S. Tsirkin, 2022/02/04
- [PULL 25/32] ACPI ERST: header file for ERST, Michael S. Tsirkin, 2022/02/04
- Re: [PULL 00/32] virtio,pc: features, cleanups, fixes, Peter Maydell, 2022/02/05
- Re: [PULL 00/32] virtio,pc: features, cleanups, fixes, Michael S. Tsirkin, 2022/02/05
- Re: [PULL 00/32] virtio,pc: features, cleanups, fixes, Peter Maydell, 2022/02/05
- Re: [PULL 00/32] virtio,pc: features, cleanups, fixes, Michael S. Tsirkin, 2022/02/05
- Re: [PULL 00/32] virtio,pc: features, cleanups, fixes, Peter Maydell, 2022/02/05
- Re: [PULL 00/32] virtio,pc: features, cleanups, fixes, Michael S. Tsirkin, 2022/02/06
- Re: [PULL 00/32] virtio,pc: features, cleanups, fixes,
Peter Maydell <=
- Re: [PULL 00/32] virtio,pc: features, cleanups, fixes, Michael S. Tsirkin, 2022/02/06