summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openscad.cc8
-rw-r--r--openscad.pro7
2 files changed, 10 insertions, 5 deletions
diff --git a/openscad.cc b/openscad.cc
index 249089a..4096ed2 100644
--- a/openscad.cc
+++ b/openscad.cc
@@ -56,7 +56,7 @@ void handle_dep(QString filename)
int main(int argc, char **argv)
{
- int rc;
+ int rc = 0;
initialize_builtin_functions();
initialize_builtin_modules();
@@ -157,9 +157,9 @@ int main(int argc, char **argv)
} else {
QString text;
char buffer[513];
- int rc;
- while ((rc = fread(buffer, 1, 512, fp)) > 0) {
- buffer[rc] = 0;
+ int ret;
+ while ((ret = fread(buffer, 1, 512, fp)) > 0) {
+ buffer[ret] = 0;
text += buffer;
}
fclose(fp);
diff --git a/openscad.pro b/openscad.pro
index cbd4525..264487c 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -7,9 +7,14 @@ else {
TARGET = openscad
}
-CONFIG += qt debug
+CONFIG += qt
TEMPLATE = app
+CONFIG += debug
+# CONFIG += release
+# QMAKE_CFLAGS_RELEASE += -O3
+# QMAKE_CXXFLAGS_RELEASE += -O3
+
# MDI needs an OpenCSG library that is compiled with OpenCSG-Reset-Hack.patch applied
# DEFINES += ENABLE_MDI
contact: Jan Huwald // Impressum