bryancall commented on PR #12690: URL: https://github.com/apache/trafficserver/pull/12690#issuecomment-3597588138
Good suggestion! Using `std::string(1, 'a')` is indeed cleaner than the pragma workaround. I've pushed a new commit (f63dee7db) that implements this approach - it constructs the string explicitly from a char which avoids the GCC 12 false positive entirely. This is a better solution as it: - Avoids compiler-specific pragmas - Makes the intent clearer - Eliminates the warning at the source rather than suppressing it -- 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]
