Stop Sun Studio from issuing a warning during configure when passed
authorDiego Pettenò <flameeyes@gmail.com>
Fri, 3 Oct 2008 00:19:05 +0000 (00:19 +0000)
committerDiego Biurrun <diego@biurrun.de>
Fri, 3 Oct 2008 00:19:05 +0000 (00:19 +0000)
the --version option.
patch by Diego 'Flameeyes' Pettenò, flameeyes gmail com

Originally committed as revision 15532 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index c741601..3ef85bd 100755 (executable)
--- a/configure
+++ b/configure
@@ -1883,7 +1883,7 @@ check_cflags -fno-math-errno
 check_cflags -fno-signed-zeros
 
 # add some flags for Intel C Compiler
-if $cc --version | grep -q Intel; then
+if $cc --version 2> /dev/null | grep -q Intel; then
   # Just warnings, no remarks
   check_cflags -w1
   # -wd: Disable following warnings