* [Buildroot] Compile error: makedevs.c - warnings treated as errors
@ 2008-12-02 19:17 Joe George
2008-12-02 19:34 ` Dan Lyke
2008-12-02 22:27 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Joe George @ 2008-12-02 19:17 UTC (permalink / raw)
To: buildroot
I am getting a compile error due to warnings. I probably have
something setup wrong but I haven't been able to figure out what. The
makedevs.c file has not changed from an earlier buildroot snapshot
that compiled.
cc1: warnings being treated as errors
/media/swdev/buildroot/build_powerpc/makedevs/makedevs.c: In function 'main':
/media/swdev/buildroot/build_powerpc/makedevs/makedevs.c:531: error:
ignoring return value of 'system', declared with attribute
warn_unused_result
make: *** [/media/swdev/buildroot/build_powerpc/makedevs/makedevs] Error 1
Any ideas?
Thanks,
Joe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 18152 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20081202/27734c3a/attachment-0001.obj
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Compile error: makedevs.c - warnings treated as errors
2008-12-02 19:17 [Buildroot] Compile error: makedevs.c - warnings treated as errors Joe George
@ 2008-12-02 19:34 ` Dan Lyke
2008-12-02 22:27 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Dan Lyke @ 2008-12-02 19:34 UTC (permalink / raw)
To: buildroot
On Tue, 2 Dec 2008 12:17:05 -0700
"Joe George" <ccjoegml@gmail.com> wrote:
> cc1: warnings being treated as errors
> /media/swdev/buildroot/build_powerpc/makedevs/makedevs.c: In function
> 'main': /media/swdev/buildroot/build_powerpc/makedevs/makedevs.c:531:
> error: ignoring return value of 'system', declared with attribute
> warn_unused_result
> make: *** [/media/swdev/buildroot/build_powerpc/makedevs/makedevs]
> Error 1
I've just replaced that line in makedevs.c with
int r = system(...);
if (r) {}
Temporary gross workaround and all, but it let the compile continue.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Compile error: makedevs.c - warnings treated as errors
2008-12-02 19:17 [Buildroot] Compile error: makedevs.c - warnings treated as errors Joe George
2008-12-02 19:34 ` Dan Lyke
@ 2008-12-02 22:27 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2008-12-02 22:27 UTC (permalink / raw)
To: buildroot
Le Tue, 2 Dec 2008 12:17:05 -0700,
"Joe George" <ccjoegml@gmail.com> a ?crit :
> Any ideas?
Fixed in r24236, thanks to a patch provided by Jeremy Kerr.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-02 22:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 19:17 [Buildroot] Compile error: makedevs.c - warnings treated as errors Joe George
2008-12-02 19:34 ` Dan Lyke
2008-12-02 22:27 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox