ruby-changes:50170
From: k0kubun <ko1@a...>
Date: Wed, 7 Feb 2018 23:08:30 +0900 (JST)
Subject: [ruby-changes:50170] k0kubun:r62288 (trunk): mjit.c: fix -Wdiscarded-qualifiers warning
k0kubun 2018-02-07 23:08:24 +0900 (Wed, 07 Feb 2018) New Revision: 62288 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62288 Log: mjit.c: fix -Wdiscarded-qualifiers warning ../mjit.c: In function ?\226?\128?\152system_tmpdir?\226?\128?\153: ../mjit.c:1231:9: warning: assignment discards ?\226?\128?\152const?\226?\128?\153 qualifier from pointer target type [-Wdiscarded-qualifiers] tmpdir = "/tmp"; ^ ../mjit.c: At top level: Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 62287) +++ mjit.c (revision 62288) @@ -1228,7 +1228,7 @@ system_tmpdir(void) https://github.com/ruby/ruby/blob/trunk/mjit.c#L1228 #endif if (!(tmpdir = getenv("TMPDIR")) && !(tmpdir = getenv("TMP"))) { - tmpdir = "/tmp"; + return get_string("/tmp"); } return get_string(tmpdir); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/