Fix warnings about unused variables.
authorMartin Lambers <marlam@marlam.de>
Tue, 9 Oct 2018 08:05:55 +0000 (10:05 +0200)
committerMartin Lambers <marlam@marlam.de>
Tue, 9 Oct 2018 08:05:55 +0000 (10:05 +0200)
libcamsim/exporter.cpp
libcamsim/importer.cpp

index c86d887..3390d17 100644 (file)
@@ -634,6 +634,10 @@ bool Exporter::writeGTA(const QString fileName, const QList<TexData> dataList, c
     }
     return true;
 #else
+    Q_UNUSED(fileName);
+    Q_UNUSED(dataList);
+    Q_UNUSED(channelsList);
+    Q_UNUSED(compressionLevel);
     return false;
 #endif
 }
@@ -693,6 +697,10 @@ bool Exporter::writeMAT(const QString fileName, const QList<TexData> dataList, c
     Mat_Close(mat);
     return true;
 #else
+    Q_UNUSED(fileName);
+    Q_UNUSED(dataList);
+    Q_UNUSED(channelsList);
+    Q_UNUSED(compressionLevel);
     return false;
 #endif
 }
@@ -745,6 +753,10 @@ bool Exporter::writeHDF(const QString fileName, const QList<TexData> dataList, c
     }
     return true;
 #else
+    Q_UNUSED(fileName);
+    Q_UNUSED(dataList);
+    Q_UNUSED(channelsList);
+    Q_UNUSED(compressionLevel);
     return false;
 #endif
 }
index 7d6401d..c324568 100644 (file)
@@ -149,6 +149,9 @@ void Importer::addLightToScene(int lightSourceIndex, Scene& scene) const
 
     scene.lights.append(light);
     scene.lightAnimations.append(Animation());
+#else
+    Q_UNUSED(lightSourceIndex);
+    Q_UNUSED(scene);
 #endif
 }
 
@@ -343,6 +346,8 @@ void Importer::addObjectToScene(Scene& scene) const
     }
     scene.objects.append(object);
     scene.objectAnimations.append(Animation());
+#else
+    Q_UNUSED(scene);
 #endif
 }