public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-analyzer/mtr/files: mtr-0.75--Wno-pointer-sign.patch
@ 2009-10-22  9:24 Peter Volkov (pva)
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Volkov (pva) @ 2009-10-22  9:24 UTC (permalink / raw
  To: gentoo-commits

pva         09/10/22 09:24:59

  Added:                mtr-0.75--Wno-pointer-sign.patch
  Log:
  Fixed build issue with gcc-3.4.6, bug #248800, thank barthek for report.
  (Portage version: 2.1.7.1/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-analyzer/mtr/files/mtr-0.75--Wno-pointer-sign.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/mtr/files/mtr-0.75--Wno-pointer-sign.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/mtr/files/mtr-0.75--Wno-pointer-sign.patch?rev=1.1&content-type=text/plain

Index: mtr-0.75--Wno-pointer-sign.patch
===================================================================
=== modified file 'configure.in'
--- configure.in	2009-05-24 15:45:58 +0000
+++ configure.in	2009-05-24 16:02:19 +0000
@@ -107,8 +107,13 @@
 AC_MSG_CHECKING(for C flags to get more warnings)
 ac_save_CFLAGS="$CFLAGS"
 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
-  dnl gcc is the easiest C compiler
-  warning_CFLAGS="-Wall -Wno-pointer-sign"
+  warning_CFLAGS="-Wall"
+  # Check if compiler supports -Wno-pointer-sign and add it if supports
+  CFLAGS_saved="$CFLAGS"
+  CFLAGS="$CFLAGS -Wno-pointer-sign"
+  AC_COMPILE_IFELSE([ AC_LANG_SOURCE([[ int foo; ]])],
+                  [ warning_CFLAGS="${warning_CFLAGS} -Wno-pointer-sign" ],)
+  CFLAGS="$CFLAGS_saved"
 else
   dnl Vendor supplied C compilers are a bit tricky
   case "$host_os" in







^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-analyzer/mtr/files: mtr-0.75--Wno-pointer-sign.patch
@ 2010-07-24 15:37 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2010-07-24 15:37 UTC (permalink / raw
  To: gentoo-commits

ssuominen    10/07/24 15:37:47

  Removed:              mtr-0.75--Wno-pointer-sign.patch
  Log:
  old
  (Portage version: 2.2_rc67/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-24 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-24 15:37 [gentoo-commits] gentoo-x86 commit in net-analyzer/mtr/files: mtr-0.75--Wno-pointer-sign.patch Samuli Suominen (ssuominen)
  -- strict thread matches above, loose matches on Subject: below --
2009-10-22  9:24 Peter Volkov (pva)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox