aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx
diff options
context:
space:
mode:
authorArtur Cygan <[email protected]>2018-06-29 12:46:01 +0200
committerArtur Cygan <[email protected]>2018-07-03 10:57:28 +0200
commit5c0000886199ed4d89a2f678d7ff6e6c4467f4cf (patch)
tree0ac0abca9ffa4ee530014c3a4547fe9c6438329a /lib/wx
parentd876b9a69fda446bf9d810cca82629ccbd17bf5f (diff)
downloadotp-5c0000886199ed4d89a2f678d7ff6e6c4467f4cf.tar.gz
otp-5c0000886199ed4d89a2f678d7ff6e6c4467f4cf.tar.bz2
otp-5c0000886199ed4d89a2f678d7ff6e6c4467f4cf.zip
Remove wx c_src compilation warning on Darwin
Diffstat (limited to 'lib/wx')
-rw-r--r--lib/wx/c_src/wxe_main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/wx/c_src/wxe_main.cpp b/lib/wx/c_src/wxe_main.cpp
index c7565e33bd..e2cd30a8e0 100644
--- a/lib/wx/c_src/wxe_main.cpp
+++ b/lib/wx/c_src/wxe_main.cpp
@@ -1,7 +1,7 @@
/*
* %CopyrightBegin%
*
- * Copyright Ericsson AB 2014-2016. All Rights Reserved.
+ * Copyright Ericsson AB 2014-2018. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -67,7 +67,6 @@ int load_native_gui()
int start_native_gui(wxe_data *sd)
{
int res;
- ErlDrvThreadOpts *opts = NULL;
wxe_status_m = erl_drv_mutex_create((char *) "wxe_status_m");
wxe_status_c = erl_drv_cond_create((char *)"wxe_status_c");
@@ -79,7 +78,7 @@ int start_native_gui(wxe_data *sd)
res = erl_drv_steal_main_thread((char *)"wxwidgets",
&wxe_thread,wxe_main_loop,(void *) sd->pdl,NULL);
#else
- opts = erl_drv_thread_opts_create((char *)"wx thread");
+ ErlDrvThreadOpts *opts = erl_drv_thread_opts_create((char *)"wx thread");
opts->suggested_stack_size = 8192;
res = erl_drv_thread_create((char *)"wxwidgets",
&wxe_thread,wxe_main_loop,(void *) sd->pdl,opts);