3768bdde6fdf — Chris Cannam 3 years ago
Fix compiler warnings
1 files changed, 5 insertions(+), 3 deletions(-)

M src/backend/BasicStoreSord.cpp
M src/backend/BasicStoreSord.cpp +5 -3
@@ 92,7 92,7 @@
 static bool seeded = false;
         static QMutexLocker l(&m);
         if (!seeded) return;
-        srand(time(0));
+        srand((unsigned int)time(0));
         seeded = true;
     }
 

          
@@ 439,8 439,10 @@
          try {
 
-            QString qpfx(QString::fromUtf8((const char *)name->buf, name->n_bytes));
-            Uri quri(QString::fromUtf8((const char *)uri->buf, uri->n_bytes));
+            QString qpfx(QString::fromUtf8((const char *)name->buf,
+                                           (int)name->n_bytes));
+            Uri quri(QString::fromUtf8((const char *)uri->buf,
+                                       (int)uri->n_bytes));
 
             d->addPrefixOnImport(qpfx, quri);