[LLVMbugs] [Bug 13416] New: -Wsometimes-uninitialized prints two errors for one issue
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 19 22:57:03 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13416
Bug #: 13416
Summary: -Wsometimes-uninitialized prints two errors for one
issue
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Somewhere in chromium:
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:896:9: error:
variable 'backup_homepage_is_ntp' is used uninitialized whenever '||' condition
is true [-Werror,-Wsometimes-uninitialized]
if (!prefs_watcher->GetBackupForPref(prefs::kHomePage)->
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:911:9: note:
uninitialized use occurs here
backup_homepage_is_ntp,
^~~~~~~~~~~~~~~~~~~~~~
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:896:9: note:
remove the '||' if its condition is always false
if (!prefs_watcher->GetBackupForPref(prefs::kHomePage)->
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:894:32: note:
initialize the variable 'backup_homepage_is_ntp' to silence this warning
bool backup_homepage_is_ntp;
^
= false
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:896:9: error:
variable 'backup_show_home_button' is used uninitialized whenever '||'
condition is true [-Werror,-Wsometimes-uninitialized]
if (!prefs_watcher->GetBackupForPref(prefs::kHomePage)->
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:912:9: note:
uninitialized use occurs here
backup_show_home_button));
^~~~~~~~~~~~~~~~~~~~~~~
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:896:9: note:
remove the '||' if its condition is always false
if (!prefs_watcher->GetBackupForPref(prefs::kHomePage)->
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:896:9: error:
variable 'backup_show_home_button' is used uninitialized whenever '||'
condition is true [-Werror,-Wsometimes-uninitialized]
if (!prefs_watcher->GetBackupForPref(prefs::kHomePage)->
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:912:9: note:
uninitialized use occurs here
backup_show_home_button));
^~~~~~~~~~~~~~~~~~~~~~~
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:896:9: note:
remove the '||' if its condition is always false
if (!prefs_watcher->GetBackupForPref(prefs::kHomePage)->
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../chrome/browser/ui/startup/startup_browser_creator_impl.cc:895:33: note:
initialize the variable 'backup_show_home_button' to silence this warning
bool backup_show_home_button;
^
= false
Note that the second variable has two errors on the same line.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list