]> granicus.if.org Git - taglib/commitdiff
Silence some GCC warnings about no return statement.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Sun, 22 Nov 2015 09:42:49 +0000 (18:42 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Sun, 22 Nov 2015 09:42:49 +0000 (18:42 +0900)
taglib/fileref.cpp

index 7cf78803458c5350042739260a27922076d714db..4b01e719fa7871e299aebb187f2315c2e15e291d 100644 (file)
@@ -64,7 +64,8 @@ namespace
   template <typename T>
   inline FileName toFileName(T arg)
   {
-    // Should never be called.
+    debug("FileRef::toFileName<T>(): This version should never be called.");
+    return FileName(L"");
   }
 
   template <>
@@ -83,7 +84,8 @@ namespace
   inline File *resolveFileType(T arg, bool readProperties,
                                AudioProperties::ReadStyle style)
   {
-    // Should never be called.
+    debug("FileRef::resolveFileType<T>(): This version should never be called.");
+    return 0;
   }
 
   template <>