mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-10-27 23:31:09 +01:00
Silence warnings when testing gccs
This silences the warning that gcc-4.2 produces on Yosemite:
couldn't understand kern.osversion `14.0.0'
This commit is contained in:
parent
10fd04909d
commit
dafba300b1
2 changed files with 11 additions and 1 deletions
|
|
@ -766,7 +766,7 @@ verify_gcc() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
local version="$("$gcc" --version || true)"
|
||||
local version="$("$gcc" --version 2>/dev/null || true)"
|
||||
if [ -z "$version" ]; then
|
||||
return 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue