[FFmpeg-devel] [PATCH] Stop Sun Studio from issuing a warning during configure run.

Diego 'Flameeyes' Pettenò flameeyes
Thu Oct 2 19:35:31 CEST 2008

The Sun Studio compiler dislikes the --version option, so make sure
its standard error is not shown to the user.

 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index be34ada..724890b 100755
--- a/configure
+++ b/configure
@@ -1921,7 +1921,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

More information about the ffmpeg-devel mailing list