Hi 

I was building the moonlight trunk with the --with-debug=no and
--with-logging=no and got a few compile errors.

The following is a patch to correct the two problems  (runtime.cpp and
value.cpp). 

I'm new to git so I just used

git diff HEAD > patch.diff

to get the changes I hope that was right :).

The patch is below

Dean


diff --git a/src/runtime.cpp b/src/runtime.cpp
index 6d40333..452ea73 100644
--- a/src/runtime.cpp
+++ b/src/runtime.cpp
@@ -2525,6 +2525,7 @@ runtime_init_desktop ()
        runtime_init (NULL, RUNTIME_INIT_DESKTOP, false);
 }
 
+#if DEBUG || LOGGING
 static guint32
 get_debug_options (const char *envname, MoonlightDebugOption options[])
 {
@@ -2572,6 +2573,7 @@ get_debug_options (const char *envname,
MoonlightDebugOption options[])
 
        return flags;
 }
+#endif
 
 static RuntimeInitFlag
 get_runtime_options (RuntimeInitFlag def)
diff --git a/src/value.cpp b/src/value.cpp
index e833b0f..95847f0 100644
--- a/src/value.cpp
+++ b/src/value.cpp
@@ -997,6 +997,7 @@ Value::GetName ()
 
        return g_string_free (str, FALSE);
 }
+#endif
 
 };
-#
-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Fixes-for-the-build-with-debug-off-tp3002029p3002029.html
Sent from the Moonlight mailing list archive at Nabble.com.
_______________________________________________
Moonlight-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/moonlight-list

Reply via email to