From 6a139e742a2cbb2c7169b757b6224821202c7035 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sat, 14 Sep 2024 17:34:39 -0400 Subject: [PATCH] sntop: workaround for newer Clang --- Formula/s/sntop.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Formula/s/sntop.rb b/Formula/s/sntop.rb index fa2e3721971a..65f4d0e7f15e 100644 --- a/Formula/s/sntop.rb +++ b/Formula/s/sntop.rb @@ -33,10 +33,12 @@ class Sntop < Formula uses_from_macos "ncurses" def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--mandir=#{man}", - "--sysconfdir=#{etc}" + # Workaround for newer Clang + ENV.append_to_cflags "-Wno-implicit-int" if DevelopmentTools.clang_build_version >= 1403 + + system "./configure", "--mandir=#{man}", + "--sysconfdir=#{etc}", + *std_configure_args etc.mkpath bin.mkpath man1.mkpath