From b78659ea1c342346f600e685c87b78945f984024 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Wed, 5 Aug 2015 23:22:22 -0400 Subject: [PATCH] add missing const to make C++ happy --- src/jlapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jlapi.c b/src/jlapi.c index 2faf4ccce5468..20c60d1d5bd46 100644 --- a/src/jlapi.c +++ b/src/jlapi.c @@ -291,14 +291,14 @@ static const char *git_info_string(const char *fld) { DLLEXPORT const char *jl_git_branch() { - static char *branch = NULL; + static const char *branch = NULL; if (!branch) branch = git_info_string("branch"); return branch; } DLLEXPORT const char *jl_git_commit() { - static char *commit = NULL; + static const char *commit = NULL; if (!commit) commit = git_info_string("commit"); return commit; }