aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/common/run_erl_common.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-09-04 14:51:57 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-09-04 14:51:57 +0200
commite036643fbd5c5cba7f652734966570fee7ca99b3 (patch)
tree94ac9b674ba3eae5543f85d3ec3e6d7b4afaff38 /erts/etc/common/run_erl_common.c
parentde618b04eb78702cff7c08f984d6779b8ef06895 (diff)
parent211d9b31a73e30f44a428a2328b7705136f263d5 (diff)
downloadotp-e036643fbd5c5cba7f652734966570fee7ca99b3.tar.gz
otp-e036643fbd5c5cba7f652734966570fee7ca99b3.tar.bz2
otp-e036643fbd5c5cba7f652734966570fee7ca99b3.zip
Merge branch 'egil/fix-llvm-cc-warnings/OTP-12138' into maint
* egil/fix-llvm-cc-warnings/OTP-12138: odbc: Suppress signedness warnings for 'char *' ic: Suppress unused-value warning erts: Fix tentative-definition-incomplete-type erts: Don't redefine '_XOPEN_SOURCE'
Diffstat (limited to 'erts/etc/common/run_erl_common.c')
-rw-r--r--erts/etc/common/run_erl_common.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/erts/etc/common/run_erl_common.c b/erts/etc/common/run_erl_common.c
index dc55c2bea4..580b6cc3c5 100644
--- a/erts/etc/common/run_erl_common.c
+++ b/erts/etc/common/run_erl_common.c
@@ -74,15 +74,6 @@
* run_erl multiple times with different global variables without them
* effecting eachother.
*/
-typedef struct run_erl_ run_erl;
-
-#ifdef __OSE__
-static OSPPDKEY run_erl_pp_key;
-#define RE_DATA (*(run_erl**)ose_get_ppdata(run_erl_pp_key))
-#else
-static run_erl re;
-#define RE_DATA (&re)
-#endif
#define STATUSFILE (RE_DATA->statusfile)
#define LOG_DIR (RE_DATA->log_dir)
@@ -116,6 +107,16 @@ struct run_erl_ {
unsigned protocol_ver;
};
+typedef struct run_erl_ run_erl;
+
+#ifdef __OSE__
+static OSPPDKEY run_erl_pp_key;
+#define RE_DATA (*(run_erl**)ose_get_ppdata(run_erl_pp_key))
+#else
+static run_erl re;
+#define RE_DATA (&re)
+#endif
+
/* prototypes */
static int next_log(int log_num);