make 'build' happy:
authorKlaus Kaempf <kkaempf@suse.de>
Sun, 15 Jan 2006 17:17:43 +0000 (17:17 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Sun, 15 Jan 2006 17:17:43 +0000 (17:17 +0000)
  ERROR: Program returns random data in a function. Please fix.
  Problematic file(s) and their linenumbers:
    YUMPackageImpl.cc: 292, 288, 234, 209
    RpmPackageImpl.cc: 168, 164, 110, 85
    RpmDb.cc: 973

zypp/source/yum/YUMPackageImpl.cc
zypp/target/rpm/RpmDb.cc
zypp/target/rpm/RpmPackageImpl.cc

index c46f669..b0229bc 100644 (file)
@@ -206,7 +206,8 @@ namespace zypp
       { return ResObjectImplIf::delnotify(); }
 
       ByteCount YUMPackageImpl::size() const
-      { }
+#warning fixme
+      { return 0; }
 
       bool YUMPackageImpl::providesSources() const
       { return ResObjectImplIf::providesSources(); }
@@ -231,7 +232,8 @@ namespace zypp
 
       /** */
       std::string YUMPackageImpl::distribution() const
-      { }
+#warning fixme
+      { return string(); }
 
       /** */
       Vendor YUMPackageImpl::vendor() const
@@ -285,11 +287,13 @@ namespace zypp
 
       /** */
       ByteCount YUMPackageImpl::sourcesize() const
-      { }
+#warning fixme
+      { return 0; }
 
       /** */
       ByteCount YUMPackageImpl::archivesize() const
-      { }
+#warning fixme
+      { return 0; }
 
       /** */
       Text YUMPackageImpl::authors() const
index 878d08b..03b1528 100644 (file)
@@ -970,6 +970,9 @@ const std::list<Package::Ptr> & RpmDb::getPackages()
     report.end(excpt_r);
     ZYPP_RETHROW(excpt_r);
   }
+#warning fixme
+  static const std::list<Package::Ptr> empty_list;
+  return empty_list;
 }
 
 
index d63498b..4cd8772 100644 (file)
@@ -82,7 +82,8 @@ namespace zypp
       { return ResObjectImplIf::delnotify(); }
 
       ByteCount RPMPackageImpl::size() const
-      { }
+#warning fixme
+      { return 0; }
 
       bool RPMPackageImpl::providesSources() const
       { return ResObjectImplIf::providesSources(); }
@@ -107,7 +108,8 @@ namespace zypp
 
       /** */
       std::string RPMPackageImpl::distribution() const
-      { }
+#warning fixme
+      { return string(); }
 
       /** */
       Vendor RPMPackageImpl::vendor() const
@@ -161,11 +163,13 @@ namespace zypp
 
       /** */
       ByteCount RPMPackageImpl::sourcesize() const
-      { }
+#warning fixme
+      { return 0; }
 
       /** */
       ByteCount RPMPackageImpl::archivesize() const
-      { }
+#warning fixme
+      { return 0; }
 
       /** */
       Text RPMPackageImpl::authors() const