]> The Tcpdump Group git mirrors - tcpslice/commitdiff
CI: Use -errtags=yes for Sun C. [skip ci]
authorDenis Ovsienko <[email protected]>
Mon, 4 Mar 2024 11:32:58 +0000 (11:32 +0000)
committerDenis Ovsienko <[email protected]>
Mon, 4 Mar 2024 11:32:58 +0000 (11:32 +0000)
build_common.sh

index 792b6ddf6a96a3c151e6d3aeb90fa978c5fa395b..cd43aa93331a5d1f908b2867866a5562c077e40e 100644 (file)
@@ -196,7 +196,10 @@ cc_werr_cflags() {
         echo '-qhalt=w'
         ;;
     suncc-*)
-        echo '-errwarn=%all'
+        # GCC and Clang print an identification for every warning, which is
+        # useful for root cause analysis and bug fixing.  Sun C does not do it
+        # by default, but an additional option makes the style more consistent.
+        echo '-errwarn=%all -errtags=yes'
         ;;
     msvc-*)
         # XXX - what?