From: Wolfgang Rosenauer Subject: Fix compiler warnings which disturb autobuild References: ### autobuild ... testing for serious compiler warnings Program is using uninitialized variables. Note the difference between "is used" and "may be used". Please investigate and fix. Problematic file(s) and their linenumbers: certificate.c: 541 nsUnicodeToJamoTTF.cpp: 855 nsObjectFrame.cpp: 1933 ### ### autobuild ... testing for serious compiler warnings Program returns random data in a function. Please fix. Problematic file(s) and their linenumbers: nsWebShell.cpp: 562 Program is using uninitialized variables. Note the difference between "is used" and "may be used". Please investigate and fix. Problematic file(s) and their linenumbers: nsFrame.cpp: 3536 ### --- gfx/src/gtk/nsFontMetricsUtils.cpp.old 2005-03-24 07:27:33.000000000 +0100 +++ gfx/src/gtk/nsFontMetricsUtils.cpp 2005-03-24 07:28:26.000000000 +0100 @@ -75,6 +75,7 @@ NS_FontMetricsGetHints(void) #ifdef MOZ_ENABLE_COREXFONTS return nsFontMetricsGTK::GetHints(); #endif + return 1; } nsresult @@ -95,6 +96,7 @@ NS_FontMetricsFamilyExists(nsIDeviceCont #ifdef MOZ_ENABLE_COREXFONTS return nsFontMetricsGTK::FamilyExists(aDevice, aName); #endif + return 1; } #ifdef MOZ_ENABLE_XFT Index: docshell/base/nsWebShell.cpp =================================================================== RCS file: /cvsroot/mozilla/docshell/base/nsWebShell.cpp,v retrieving revision 1.656.2.1 diff -u -p -6 -r1.656.2.1 nsWebShell.cpp --- docshell/base/nsWebShell.cpp 16 Sep 2005 19:11:52 -0000 1.656.2.1 +++ docshell/base/nsWebShell.cpp 22 Sep 2005 06:30:30 -0000 @@ -556,12 +556,13 @@ nsWebShell::OnLinkClickSync(nsIContent * // XXX TODO Should be similar to the HTML IMG ALT attribute handling // in NS 4.x default: NS_ABORT_IF_FALSE(0,"unexpected link verb"); return NS_ERROR_UNEXPECTED; } + return NS_ERROR_UNEXPECTED; } NS_IMETHODIMP nsWebShell::OnOverLink(nsIContent* aContent, nsIURI* aURI, const PRUnichar* aTargetSpec)