qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC] [PATCHv10 08/31] aio / timers: Split QEMUClock in


From: Jan Kiszka
Subject: Re: [Qemu-devel] [RFC] [PATCHv10 08/31] aio / timers: Split QEMUClock into QEMUClock and QEMUTimerList
Date: Mon, 12 Aug 2013 18:36:47 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

On 2013-08-12 18:25, Alex Bligh wrote:
> 
> On 12 Aug 2013, at 17:14, Jan Kiszka wrote:
> 
>> The typedef part is a duplication of what we already have in
>> qemu/typedefs.h and breaks the build for me. Just declare the struct here.
> 
> You mean one can't do
> 
> typedef struct foo foo;
> ...
> typedef struct foo {
>   ...
> } foo;
> 
> ?

Yes, at least according to the standard. Older gcc seem to reject it,
newer may have relaxed this by default.

> 
> I don't even get a warning for that. Learn a new thing every
> day. OK will fix. I guess that means timer.h needs to explicitly
> include typedefs.h in case whatever is including timer.h does
> not first include typedefs.h.

It works without explicit including as most users pull in qemu-common.h
as well, but it's cleaner of course.

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux



reply via email to

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