<div dir="ltr"><font face="georgia,serif"><br></font><br><div class="gmail_quote">On Wed, Apr 4, 2012 at 1:16 PM, Jonathan Ben Avraham <span dir="ltr"><<a href="mailto:yba@tkos.co.il">yba@tkos.co.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Oleg,<br>
Thanks.<br>
The quesiton relates to this problem:<br>
<a href="http://unix.stackexchange.com/questions/35607/cross-lfs-ppc-error-while-compiling/35621#35621" target="_blank">http://unix.stackexchange.com/<u></u>questions/35607/cross-lfs-ppc-<u></u>error-while-compiling/35621#<u></u>35621</a><br>
</blockquote><div><br><span style="font-family:georgia,serif">Ah, </span><code style="font-family:georgia,serif">-Wunused-but-set-variable ;-) This is quite common (with gcc-4.6) in userspace code as well. :-(<br><br>So the same link tells you how you can configure kbuild to ignore it. <br>
<br>What I ususally do if it happens in one or two files only (of 3rd party code that I have) is add something like<br><br>foo.o: CFLAGS += </code><code style="font-family:georgia,serif">-Wno-error=unused-but-set-variable<br>
<br>or<br><br></code><code style="font-family:georgia,serif">foo.o: CFLAGS += </code><code style="font-family:georgia,serif">-Wno-unused-but-set-variable</code><code style="font-family:georgia,serif"></code><br></div></div>
<br><span style="font-family:georgia,serif">This does not switch -Werror globally or anything of the kind.</span><br style="font-family:georgia,serif"><br style="font-family:georgia,serif"><span style="font-family:georgia,serif">I am fairly sure that this can be done in the kernel in a similar manner.</span><br>
<br>-- <br>Oleg Goldshmidt | <a href="mailto:oleg@goldshmidt.org" target="_blank">oleg@goldshmidt.org</a><br>
</div>