bryancall opened a new pull request, #12614:
URL: https://github.com/apache/trafficserver/pull/12614

   Fixes Fedora 41 gcc release build failure.
   
   Add `nullptr` check before `strcmp` to satisfy GCC's `-Werror=nonnull` 
warning. The `expected_strip` parameter can be `nullptr` in some test cases 
(lines 325, 330, 362, 371, 376), so we need to check for null before passing to 
`strcmp`.
   
   **Error:**
   ```
   error: argument 2 null where non-null expected [-Werror=nonnull]
     228 |     if (strcmp(uri_strip, expected_strip) != 0) {
   ```
   
   **Affected Builds:**
   - Fedora 41 gcc release
   
   **Testing:**
   - [x] Code formatted with clang-format
   - [x] Verified expected_strip can be nullptr in test calls


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to