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

   This commit resolves the following warnings.
   ```
   analyze-build-18: INFO: Report directory created: 
/src/trafficserver/build-ci-clang-analyzer/clang-analyzer-output/a0f86ddbbbe5e73c397b46b80d4b2b9cd23c936c/scan-build-2025-05-07-20-58-14-229251-z8_64v4d
   analyze-build-18: INFO: /src/trafficserver/src/tscore/ink_queue.cc:177:74: 
warning: The result of the '/' expression is undefined 
[core.UndefinedBinaryOperatorResult]
   analyze-build-18: INFO:   177 |     f->chunk_size = INK_ALIGN(chunk_size * 
f->type_size, ats_pagesize()) / f->type_size;
   analyze-build-18: INFO:       |                     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
   analyze-build-18: INFO: 1 warning generated.
   analyze-build-18: INFO: 
/src/trafficserver/src/iocore/net/UnixNetVConnection.cc:676:7: warning: 3rd 
function call argument is an uninitialized value [core.CallAndMessage]
   analyze-build-18: INFO:   676 |       write_signal_error(nh, this, err);
   analyze-build-18: INFO:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   analyze-build-18: INFO: 1 warning generated.
   analyze-build-18: INFO: 
/src/trafficserver/src/iocore/cache/CacheProcessor.cc:984:9: warning: Assigned 
value is garbage or undefined [core.uninitialized.Assign]
   analyze-build-18: INFO:   984 |         int smallest     = sorted_vols[i];
   analyze-build-18: INFO:       |         ^~~~~~~~~~~~       ~~~~~~~~~~~~~~
   analyze-build-18: INFO: 
/src/trafficserver/src/iocore/cache/CacheProcessor.cc:1008:9: warning: Assigned 
value is garbage or undefined [core.uninitialized.Assign]
   analyze-build-18: INFO:  1008 |         int disk_no = sorted_vols[i];
   analyze-build-18: INFO:       |         ^~~~~~~~~~~   ~~~~~~~~~~~~~~
   analyze-build-18: INFO: 2 warnings generated.
   analyze-build-18: INFO: 
/src/trafficserver/src/proxy/http/HttpTransact.cc:7531:15: warning: Value 
stored to 'body_type' during its initialization is never read 
[deadcode.DeadStores]
   analyze-build-18: INFO:  7531 |   const char *body_type = "UNKNOWN";
   analyze-build-18: INFO:       |               ^~~~~~~~~   ~~~~~~~~~
   analyze-build-18: INFO: 1 warning generated.
   analyze-build-18: INFO: 
/src/trafficserver/plugins/experimental/memcache/tsmemcache.cc:252:15: warning: 
Value stored to 'errstr' during its initialization is never read 
[deadcode.DeadStores]
   analyze-build-18: INFO:   252 |   const char *errstr = "Unknown error";
   analyze-build-18: INFO:       |               ^~~~~~   ~~~~~~~~~~~~~~~
   analyze-build-18: INFO: 1 warning generated.
   analyze-build-18: WARNING: Run 'scan-view 
/src/trafficserver/build-ci-clang-analyzer/clang-analyzer-output/a0f86ddbbbe5e73c397b46b80d4b2b9cd23c936c/scan-build-2025-05-07-20-58-14-229251-z8_64v4d'
 to examine bug reports.
   ```


-- 
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: github-unsubscr...@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to