mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
mjit.c: fix -Wdiscarded-qualifiers warning
../mjit.c: In function ‘system_tmpdir’: ../mjit.c:1231:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] tmpdir = "/tmp"; ^ ../mjit.c: At top level: git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
13b376c561
commit
612985f5bf
1 changed files with 1 additions and 1 deletions
2
mjit.c
2
mjit.c
|
@ -1228,7 +1228,7 @@ system_tmpdir(void)
|
|||
#endif
|
||||
if (!(tmpdir = getenv("TMPDIR")) &&
|
||||
!(tmpdir = getenv("TMP"))) {
|
||||
tmpdir = "/tmp";
|
||||
return get_string("/tmp");
|
||||
}
|
||||
return get_string(tmpdir);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue