qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] buildfix: unknown option "-Wno-error=uninitialized"
@ 2009-06-30  9:15 Christoph Egger
  2009-06-30 10:05 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2009-06-30  9:15 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]


Hi!

Attached patch fixes the build error I get on NetBSD:
(NetBSD comes with gcc 4.1.3)

cc1: error: unrecognized command line option "-Wno-error=uninitialized"

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: qemu_rules.diff --]
[-- Type: text/x-diff, Size: 438 bytes --]

diff --git a/rules.mak b/rules.mak
index defee1d..8561289 100644
--- a/rules.mak
+++ b/rules.mak
@@ -1,6 +1,6 @@
 
 %.o: %.c
-	$(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -Werror -Wno-error=uninitialized -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
+	$(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -Werror -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
 
 %.o: %.S
 	$(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<,"  AS    $(TARGET_DIR)$@")

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] buildfix: unknown option "-Wno-error=uninitialized"
  2009-06-30  9:15 [Qemu-devel] [PATCH] buildfix: unknown option "-Wno-error=uninitialized" Christoph Egger
@ 2009-06-30 10:05 ` Avi Kivity
  2009-06-30 10:14   ` Christoph Egger
  0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2009-06-30 10:05 UTC (permalink / raw)
  To: Christoph Egger; +Cc: qemu-devel

On 06/30/2009 12:15 PM, Christoph Egger wrote:
> diff --git a/rules.mak b/rules.mak
> index defee1d..8561289 100644
> --- a/rules.mak
> +++ b/rules.mak
> @@ -1,6 +1,6 @@
>
>   %.o: %.c
> -	$(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -Werror -Wno-error=uninitialized -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
> +	$(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -Werror -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
>
>   %.o: %.S
>   	$(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<,"  AS    $(TARGET_DIR)$@")
>    
>


Should remove the -Werror too, it's set by ./configure.

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] buildfix: unknown option "-Wno-error=uninitialized"
  2009-06-30 10:05 ` Avi Kivity
@ 2009-06-30 10:14   ` Christoph Egger
  2009-06-30 10:20     ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2009-06-30 10:14 UTC (permalink / raw)
  To: Avi Kivity; +Cc: qemu-devel

On Tuesday 30 June 2009 12:05:25 Avi Kivity wrote:
> On 06/30/2009 12:15 PM, Christoph Egger wrote:
> > diff --git a/rules.mak b/rules.mak
> > index defee1d..8561289 100644
> > --- a/rules.mak
> > +++ b/rules.mak
> > @@ -1,6 +1,6 @@
> >
> >   %.o: %.c
> > -	$(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -Werror
> > -Wno-error=uninitialized -c -o $@ $<,"  CC    $(TARGET_DIR)$@") +	$(call
> > quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -Werror -c -o $@ $<,"  CC   
> > $(TARGET_DIR)$@")
> >
> >   %.o: %.S
> >   	$(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<,"  AS   
> > $(TARGET_DIR)$@")
>
> Should remove the -Werror too, it's set by ./configure.

Will you do this between applying the patch and 'git commit' or should I 
resend a diff ?

Christoph


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] buildfix: unknown option "-Wno-error=uninitialized"
  2009-06-30 10:14   ` Christoph Egger
@ 2009-06-30 10:20     ` Avi Kivity
  0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2009-06-30 10:20 UTC (permalink / raw)
  To: Christoph Egger; +Cc: qemu-devel

On 06/30/2009 01:14 PM, Christoph Egger wrote:
>> Should remove the -Werror too, it's set by ./configure.
>>      
>
> Will you do this between applying the patch and 'git commit' or should I
> resend a diff ?
>
>    

I'm not a qemu maintainer, so I can't commit the patch.

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-30 10:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30  9:15 [Qemu-devel] [PATCH] buildfix: unknown option "-Wno-error=uninitialized" Christoph Egger
2009-06-30 10:05 ` Avi Kivity
2009-06-30 10:14   ` Christoph Egger
2009-06-30 10:20     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).