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

bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new e05f6d4a05 macOS compiler error with clang (#10527)
e05f6d4a05 is described below

commit e05f6d4a0587ffd1004a27a3bbf505e7aa71da2f
Author: Bryan Call <bc...@apache.org>
AuthorDate: Tue Sep 26 13:11:45 2023 -0700

    macOS compiler error with clang (#10527)
    
    error: braces around scalar initializer
---
 src/tscore/unit_tests/test_ink_string.cc | 152 +++++++++++++++----------------
 1 file changed, 76 insertions(+), 76 deletions(-)

diff --git a/src/tscore/unit_tests/test_ink_string.cc 
b/src/tscore/unit_tests/test_ink_string.cc
index d298389f8c..2e226edfd8 100644
--- a/src/tscore/unit_tests/test_ink_string.cc
+++ b/src/tscore/unit_tests/test_ink_string.cc
@@ -35,47 +35,47 @@ struct int64_item {
 };
 
 constexpr int64_item int64_tests[] = {
-  {{0},                    {"0"}                   },
-  {{1},                    {"1"}                   },
-  {{10},                   {"10"}                  },
-  {{100},                  {"100"}                 },
-  {{1000},                 {"1000"}                },
-  {{10000},                {"10000"}               },
-  {{100000},               {"100000"}              },
-  {{1000000},              {"1000000"}             },
-  {{10000000},             {"10000000"}            },
-  {{100000000},            {"100000000"}           },
-  {{1000000000},           {"1000000000"}          },
-  {{10000000000},          {"10000000000"}         },
-  {{100000000000},         {"100000000000"}        },
-  {{1000000000000},        {"1000000000000"}       },
-  {{10000000000000},       {"10000000000000"}      },
-  {{100000000000000},      {"100000000000000"}     },
-  {{1000000000000000},     {"1000000000000000"}    },
-  {{10000000000000000},    {"10000000000000000"}   },
-  {{100000000000000000},   {"100000000000000000"}  },
-  {{1000000000000000000},  {"1000000000000000000"} },
-  {{-1},                   "-1"                    },
-  {{-10},                  "-10"                   },
-  {{-100},                 "-100"                  },
-  {{-1000},                "-1000"                 },
-  {{-10000},               "-10000"                },
-  {{-100000},              "-100000"               },
-  {{-1000000},             "-1000000"              },
-  {{-10000000},            "-10000000"             },
-  {{-100000000},           "-100000000"            },
-  {{-1000000000},          "-1000000000"           },
-  {{-10000000000},         "-10000000000"          },
-  {{-100000000000},        "-100000000000"         },
-  {{-1000000000000},       "-1000000000000"        },
-  {{-10000000000000},      "-10000000000000"       },
-  {{-100000000000000},     "-100000000000000"      },
-  {{-1000000000000000},    "-1000000000000000"     },
-  {{-10000000000000000},   "-10000000000000000"    },
-  {{-100000000000000000},  "-100000000000000000"   },
-  {{-1000000000000000000}, "-1000000000000000000"  },
-  {{INT64_MAX},            {"9223372036854775807"} },
-  {{INT64_MIN},            {"-9223372036854775808"}},
+  {0,                    "0"                   },
+  {1,                    "1"                   },
+  {10,                   "10"                  },
+  {100,                  "100"                 },
+  {1000,                 "1000"                },
+  {10000,                "10000"               },
+  {100000,               "100000"              },
+  {1000000,              "1000000"             },
+  {10000000,             "10000000"            },
+  {100000000,            "100000000"           },
+  {1000000000,           "1000000000"          },
+  {10000000000,          "10000000000"         },
+  {100000000000,         "100000000000"        },
+  {1000000000000,        "1000000000000"       },
+  {10000000000000,       "10000000000000"      },
+  {100000000000000,      "100000000000000"     },
+  {1000000000000000,     "1000000000000000"    },
+  {10000000000000000,    "10000000000000000"   },
+  {100000000000000000,   "100000000000000000"  },
+  {1000000000000000000,  "1000000000000000000" },
+  {-1,                   "-1"                  },
+  {-10,                  "-10"                 },
+  {-100,                 "-100"                },
+  {-1000,                "-1000"               },
+  {-10000,               "-10000"              },
+  {-100000,              "-100000"             },
+  {-1000000,             "-1000000"            },
+  {-10000000,            "-10000000"           },
+  {-100000000,           "-100000000"          },
+  {-1000000000,          "-1000000000"         },
+  {-10000000000,         "-10000000000"        },
+  {-100000000000,        "-100000000000"       },
+  {-1000000000000,       "-1000000000000"      },
+  {-10000000000000,      "-10000000000000"     },
+  {-100000000000000,     "-100000000000000"    },
+  {-1000000000000000,    "-1000000000000000"   },
+  {-10000000000000000,   "-10000000000000000"  },
+  {-100000000000000000,  "-100000000000000000" },
+  {-1000000000000000000, "-1000000000000000000"},
+  {INT64_MAX,            "9223372036854775807" },
+  {INT64_MIN,            "-9223372036854775808"},
 };
 
 TEST_CASE("ink_fast_ltoa", "[libts][ink_fast_ltoa]")
@@ -99,29 +99,29 @@ struct int_item {
 };
 
 constexpr int_item int_tests[] = {
-  {{0},           {"0"}          },
-  {{1},           {"1"}          },
-  {{10},          {"10"}         },
-  {{100},         {"100"}        },
-  {{1000},        {"1000"}       },
-  {{10000},       {"10000"}      },
-  {{100000},      {"100000"}     },
-  {{1000000},     {"1000000"}    },
-  {{10000000},    {"10000000"}   },
-  {{100000000},   {"100000000"}  },
-  {{1000000000},  {"1000000000"} },
-  {{-1},          {"-1"}         },
-  {{-10},         {"-10"}        },
-  {{-100},        {"-100"}       },
-  {{-1000},       {"-1000"}      },
-  {{-10000},      {"-10000"}     },
-  {{-100000},     {"-100000"}    },
-  {{-1000000},    {"-1000000"}   },
-  {{-10000000},   {"-10000000"}  },
-  {{-100000000},  {"-100000000"} },
-  {{-1000000000}, {"-1000000000"}},
-  {{INT_MAX},     {"2147483647"} },
-  {{INT_MIN},     {"-2147483648"}},
+  {0,           "0"          },
+  {1,           "1"          },
+  {10,          "10"         },
+  {100,         "100"        },
+  {1000,        "1000"       },
+  {10000,       "10000"      },
+  {100000,      "100000"     },
+  {1000000,     "1000000"    },
+  {10000000,    "10000000"   },
+  {100000000,   "100000000"  },
+  {1000000000,  "1000000000" },
+  {-1,          "-1"         },
+  {-10,         "-10"        },
+  {-100,        "-100"       },
+  {-1000,       "-1000"      },
+  {-10000,      "-10000"     },
+  {-100000,     "-100000"    },
+  {-1000000,    "-1000000"   },
+  {-10000000,   "-10000000"  },
+  {-100000000,  "-100000000" },
+  {-1000000000, "-1000000000"},
+  {INT_MAX,     "2147483647" },
+  {INT_MIN,     "-2147483648"},
 };
 
 TEST_CASE("ink_fast_inta", "[libts][ink_fast_inta]")
@@ -144,18 +144,18 @@ struct uint_item {
 };
 
 constexpr uint_item uint_tests[] = {
-  {{0},          {"0"}         },
-  {{1},          {"1"}         },
-  {{10},         {"10"}        },
-  {{100},        {"100"}       },
-  {{1000},       {"1000"}      },
-  {{10000},      {"10000"}     },
-  {{100000},     {"100000"}    },
-  {{1000000},    {"1000000"}   },
-  {{10000000},   {"10000000"}  },
-  {{100000000},  {"100000000"} },
-  {{1000000000}, {"1000000000"}},
-  {{UINT_MAX},   {"4294967295"}},
+  {0,          "0"         },
+  {1,          "1"         },
+  {10,         "10"        },
+  {100,        "100"       },
+  {1000,       "1000"      },
+  {10000,      "10000"     },
+  {100000,     "100000"    },
+  {1000000,    "1000000"   },
+  {10000000,   "10000000"  },
+  {100000000,  "100000000" },
+  {1000000000, "1000000000"},
+  {UINT_MAX,   "4294967295"},
 };
 
 TEST_CASE("ink_fast_uinta", "[libts][ink_fast_uinta]")

Reply via email to