You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2021/05/17 16:45:43 UTC

[trafficserver] branch 9.1.x updated (23e7a04 -> bd8dc1a)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a change to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git.


    from 23e7a04  Don't call next next dup on destroyed mime field mloc. (#7833)
     new 57ea17d  Fixed warning in gcc 11 about array not being initalized (#7840)
     new bd8dc1a  Extra braces for clang 5 / ubuntu 16.04 on array initialization (#7842)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/tscore/Regex.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

[trafficserver] 02/02: Extra braces for clang 5 / ubuntu 16.04 on array initialization (#7842)

Posted by zw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit bd8dc1a212251a97d015c9638898c1cf92ac2d71
Author: Bryan Call <bc...@apache.org>
AuthorDate: Mon May 17 07:50:52 2021 -0700

    Extra braces for clang 5 / ubuntu 16.04 on array initialization (#7842)
    
    (cherry picked from commit e728d0a2614b940821a1a401176b3a9612a5b5f1)
---
 src/tscore/Regex.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tscore/Regex.cc b/src/tscore/Regex.cc
index ea80116..1fe1e31 100644
--- a/src/tscore/Regex.cc
+++ b/src/tscore/Regex.cc
@@ -111,7 +111,7 @@ Regex::get_capture_count()
 bool
 Regex::exec(std::string_view const &str)
 {
-  std::array<int, DEFAULT_GROUP_COUNT * 3> ovector = {0};
+  std::array<int, DEFAULT_GROUP_COUNT * 3> ovector = {{0}};
   return this->exec(str, ovector.data(), ovector.size());
 }
 

[trafficserver] 01/02: Fixed warning in gcc 11 about array not being initalized (#7840)

Posted by zw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 57ea17df44a4196f9ee1f82417e0dc916e6f8a2c
Author: Bryan Call <bc...@apache.org>
AuthorDate: Fri May 14 12:55:20 2021 -0700

    Fixed warning in gcc 11 about array not being initalized (#7840)
    
    (cherry picked from commit db75f1869883614b49cd6276edcb138e44af7cad)
---
 src/tscore/Regex.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tscore/Regex.cc b/src/tscore/Regex.cc
index 9d93c8d..ea80116 100644
--- a/src/tscore/Regex.cc
+++ b/src/tscore/Regex.cc
@@ -111,7 +111,7 @@ Regex::get_capture_count()
 bool
 Regex::exec(std::string_view const &str)
 {
-  std::array<int, DEFAULT_GROUP_COUNT * 3> ovector;
+  std::array<int, DEFAULT_GROUP_COUNT * 3> ovector = {0};
   return this->exec(str, ovector.data(), ovector.size());
 }