All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Intel Edison build warning
Date: Fri, 24 Nov 2017 17:42:22 +0200	[thread overview]
Message-ID: <1511538142.25007.441.camel@linux.intel.com> (raw)
In-Reply-To: <CAEUhbmXbg+m_pqcBCAZsGZr-TEoBs3x5U9q49t2_u0j2G9cFfg@mail.gmail.com>

On Fri, 2017-11-24 at 16:06 +0800, Bin Meng wrote:
> Hi,
> 
> Intel Edison has a build warning below.
> 
> +  *env_addr = offset;
> +            ^
> w+../env/mmc.c: In function 'mmc_get_env_addr':
> w+../env/mmc.c:121:12: warning: 'val' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> 
> I did not figure out what is wrong here. v2017.11 does not have such
> build warning.
> 
> Do you have any idea?

I can't reproduce.

What I did:

% git remote update -p
Fetching origin

% git checkout origin/master

% git clean -xdf

% make W=2 edison_defconfig

% make W=2 -j1

% touch env/mmc.c

% make W=2 -j1

No warnings WRT env/mmc.c at all.

% gcc --version

gcc (Debian 7.2.0-16) 7.2.0

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

  reply	other threads:[~2017-11-24 15:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-24  8:06 [U-Boot] Intel Edison build warning Bin Meng
2017-11-24 15:42 ` Andy Shevchenko [this message]
2017-11-24 15:56   ` Andy Shevchenko
2017-11-27  2:34     ` Bin Meng

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=1511538142.25007.441.camel@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.