Module: kamailio
Branch: master
Commit: f124b5175c53d2e3720b949e46012720ea6b36ee
URL: 
https://github.com/kamailio/kamailio/commit/f124b5175c53d2e3720b949e46012720ea6b36ee

Author: Дилян Палаузов 
<git-...@aegee.org>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-07-15T10:16:51+02:00

Makefile.defs: Avoid warning for gcc 15

---

Modified: src/Makefile.defs

---

Diff:  
https://github.com/kamailio/kamailio/commit/f124b5175c53d2e3720b949e46012720ea6b36ee.diff
Patch: 
https://github.com/kamailio/kamailio/commit/f124b5175c53d2e3720b949e46012720ea6b36ee.patch

---

diff --git a/src/Makefile.defs b/src/Makefile.defs
index 6ff7eeddb51..b8ddc6dd7ac 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -287,28 +287,28 @@ ifneq (,$(findstring gcc, $(CC_LONGVER)))
        CC_SHORTVER:=$(shell echo "$(CC_VER)" | cut -d" " -f 2| \
                                 sed -e 's/[^0-9]*-\(.*\)/\1/'| \
                                 sed -e 's/2\.9.*/2.9x/' \
-                                       -e 's/3\.[0-3]\..*/3.0/' \
-                                       -e 's/3\.[0-3]/3.0/' \
-                                       -e 's/3\.[4-9]\..*/3.4/' \
-                                       -e 's/3\.[4-9]/3.4/' \
-                                       -e 's/4\.[0-1]\..*/4.x/' \
-                                       -e 's/4\.[0-1]/4.x/' \
-                                       -e 's/4\.[2-4]\..*/4.2+/' \
-                                       -e 's/4\.[2-4]$$/4.2+/' \
-                                       -e 's/4\.[5-9]\..*/4.5+/' \
-                                       -e 's/4\.[5-9]$$/4.5+/' \
-                                       -e 's/5\.[0-9]\..*/5.0+/' \
-                                       -e 's/5\.[0-9]$$/5.0+/' \
-                                       -e 's/6\.[0-9]\..*/6.0+/' \
-                                       -e 's/6\.[0-9]$$/6.0+/' \
-                                       -e 's/7\.[0-9]\..*/7.0+/' \
-                                       -e 's/7\.[0-9]$$/7.0+/' \
-                                       -e 's/8\.[0-9]\..*/8.0+/' \
-                                       -e 's/8\.[0-9]$$/8.0+/' \
-                                       -e 's/9\.[0-9]\..*/9.0+/' \
-                                       -e 's/9\.[0-9]$$/9.0+/' \
-                                       -e 's/1[0-4]\.[0-9]\..*/9.0+/' \
-                                       -e 's/1[0-4]\.[0-9]$$/9.0+/')
+                                       -e 's/^3\.[0-3]\..*/3.0/' \
+                                       -e 's/^3\.[0-3]/3.0/' \
+                                       -e 's/^3\.[4-9]\..*/3.4/' \
+                                       -e 's/^3\.[4-9]/3.4/' \
+                                       -e 's/^4\.[0-1]\..*/4.x/' \
+                                       -e 's/^4\.[0-1]/4.x/' \
+                                       -e 's/^4\.[2-4]\..*/4.2+/' \
+                                       -e 's/^4\.[2-4]$$/4.2+/' \
+                                       -e 's/^4\.[5-9]\..*/4.5+/' \
+                                       -e 's/^4\.[5-9]$$/4.5+/' \
+                                       -e 's/^5\.[0-9]\..*/5.0+/' \
+                                       -e 's/^5\.[0-9]$$/5.0+/' \
+                                       -e 's/^6\.[0-9]\..*/6.0+/' \
+                                       -e 's/^6\.[0-9]$$/6.0+/' \
+                                       -e 's/^7\.[0-9]\..*/7.0+/' \
+                                       -e 's/^7\.[0-9]$$/7.0+/' \
+                                       -e 's/^8\.[0-9]\..*/8.0+/' \
+                                       -e 's/^8\.[0-9]$$/8.0+/' \
+                                       -e 's/^9\.[0-9]\..*/9.0+/' \
+                                       -e 's/^9\.[0-9]$$/9.0+/' \
+                                       -e 's/^1[0-5]\.[0-9]\..*/9.0+/' \
+                                       -e 's/^1[0-5]\.[0-9]$$/9.0+/')
 ifeq (,$(strip $(filter-out 3.0 3.4 4.x 4.2+ 4.5+ 5.0+ 6.0+ 7.0+ 8.0+ 
9.0+,$(CC_SHORTVER))))
        # dependencies can be generated on-the-fly while compiling *.c
        CC_MKDEP_OPTS=-MMD -MP

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to