linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] ppc64: fix build error when compiling with gcc-4.6.0
@ 2011-04-18 16:38 Stratos Psomadakis
  2011-04-18 16:38 ` [PATCH 1/1] " Stratos Psomadakis
  0 siblings, 1 reply; 4+ messages in thread
From: Stratos Psomadakis @ 2011-04-18 16:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: linuxppc-dev

The build error was reported at the Gentoo Bugzilla [1].

When compiling with gcc-4.6.0, a build error occurs: 
"variable ‘old’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors"

This patch removes the unnecessary assignments to the variable, which cause
the compiler warning (used but not set), and build failure, and removes it
completely.

I think it's ok to do that, since the variable wasn't actually used anywhere
inside those two functions that caused the warning. Right?

[1] https://bugs.gentoo.org/show_bug.cgi?id=363935

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

end of thread, other threads:[~2011-04-18 17:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-18 16:38 [PATCH 0/1] ppc64: fix build error when compiling with gcc-4.6.0 Stratos Psomadakis
2011-04-18 16:38 ` [PATCH 1/1] " Stratos Psomadakis
2011-04-18 16:51   ` Stratos Psomadakis
2011-04-18 17:00   ` Stratos Psomadakis

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).