[gbrainy] gbrainy does not need -unsafe in compilation anymore
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] gbrainy does not need -unsafe in compilation anymore
- Date: Thu, 4 Apr 2019 06:13:33 +0000 (UTC)
commit cec08a8c7ad91a72f04122ab54314b6e8edd9d8c
Author: Jordi Mas <jmas softcatala org>
Date: Thu Apr 4 08:13:14 2019 +0200
gbrainy does not need -unsafe in compilation anymore
src/Clients/Classical/Makefile.am | 2 +-
src/Core/Makefile.am | 2 +-
src/Core/Platform/Unix.cs | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Clients/Classical/Makefile.am b/src/Clients/Classical/Makefile.am
index 5055f7fd..cf7957e7 100644
--- a/src/Clients/Classical/Makefile.am
+++ b/src/Clients/Classical/Makefile.am
@@ -1,4 +1,4 @@
-EXTRAFLAGS = -unsafe -nowarn:0169 $(CSC_DEFINES)
+EXTRAFLAGS = -nowarn:0169 $(CSC_DEFINES)
WRAPPER = gbrainy
TARGET_CFG = ../../gbrainy.exe.config
diff --git a/src/Core/Makefile.am b/src/Core/Makefile.am
index 7184755e..aa5c6452 100644
--- a/src/Core/Makefile.am
+++ b/src/Core/Makefile.am
@@ -1,4 +1,4 @@
-CSFLAGS = -unsafe -target:library $(CSC_DEFINES)
+CSFLAGS = -target:library $(CSC_DEFINES)
#Active when designing games
#CSFLAGS += -D:DESIGN_MODE
diff --git a/src/Core/Platform/Unix.cs b/src/Core/Platform/Unix.cs
index 562e2ffc..1495e957 100644
--- a/src/Core/Platform/Unix.cs
+++ b/src/Core/Platform/Unix.cs
@@ -38,7 +38,7 @@ namespace gbrainy.Core.Platform
static extern void setproctitle (byte [] fmt, byte [] str_arg);
[DllImport("libgtk-3-0.dll")]
- static extern unsafe bool gtk_show_uri(IntPtr screen, IntPtr uri, uint timestamp, out IntPtr
error);
+ static extern bool gtk_show_uri(IntPtr screen, IntPtr uri, uint timestamp, out IntPtr error);
[DllImport ("libcanberra-gtk3.so.0")]
static extern void ca_gtk_play_for_widget (IntPtr widget, uint id, string name1, string
prop1, string name2, string prop2, IntPtr nil);
@@ -103,7 +103,7 @@ namespace gbrainy.Core.Platform
}
}
- public static unsafe bool ShowUri (Gdk.Screen screen, string uri, uint timestamp)
+ public static bool ShowUri (Gdk.Screen screen, string uri, uint timestamp)
{
bool rslt = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]