From: Stan Shebs <stan@codesourcery.com>
To: Hui Zhu <teawater@gmail.com>
Cc: gdb@sourceware.org, Stan Shebs <stan@codesourcery.com>
Subject: Re: cvs tracepoint.c build error
Date: Sat, 16 Jan 2010 18:53:00 -0000 [thread overview]
Message-ID: <4B520B32.40504@codesourcery.com> (raw)
In-Reply-To: <daef60381001160640k2dfb1ccfw45403d2fbf6a0b42@mail.gmail.com>
Hui Zhu wrote:
> What I got:
> gcc -g -I. -I../../src/gdb -I../../src/gdb/common
> -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\""
> -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode
> -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd
> -I../../src/gdb/../include -I../libdecnumber
> -I../../src/gdb/../libdecnumber -I../../src/gdb/gnulib -Ignulib
> -DMI_OUT=1 -DTUI=1 -DGDBTK -Wall -Wdeclaration-after-statement
> -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused
> -Wunused-value -Wno-switch -Wno-char-subscripts -Werror -c -o
> tracepoint.o -MT tracepoint.o -MMD -MP -MF .deps/tracepoint.Tpo
> ../../src/gdb/tracepoint.c
> cc1: warnings being treated as errors
> ../../src/gdb/tracepoint.c: In function 'trace_status_command':
> ../../src/gdb/tracepoint.c:1651: error: format '%d' expects type
> 'int', but argument 2 has type 'size_t'
> make[2]: *** [tracepoint.o] Error 1
> make[2]: Leaving directory `/home/teawater/gdb/bgdbno/gdb'
>
Oops, sorry! In retrospect, size_t was a bad idea, this is our own code
and we should use unsigned long long (large buffers with 32x64). Fix
forthcoming.
Stan
next prev parent reply other threads:[~2010-01-16 18:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-16 14:40 Hui Zhu
2010-01-16 18:53 ` Stan Shebs [this message]
2010-01-16 22:07 ` Jan Kratochvil
2010-01-19 3:19 ` Hui Zhu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B520B32.40504@codesourcery.com \
--to=stan@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=teawater@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox