diff options
author | Brad King <brad.king@kitware.com> | 2022-01-28 12:57:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-28 13:06:13 (GMT) |
commit | ae101921e8441d2a87ce0f09804cad2409726cc5 (patch) | |
tree | 9e458983716b161f24bf971ebbdec8979dc8f464 /Help/guide/tutorial/Step10/MathFunctions/mysqrt.h | |
parent | ee1bed5058c69061dbc2c64871cabd8c2ab82d0e (diff) | |
download | CMake-ae101921e8441d2a87ce0f09804cad2409726cc5.zip CMake-ae101921e8441d2a87ce0f09804cad2409726cc5.tar.gz CMake-ae101921e8441d2a87ce0f09804cad2409726cc5.tar.bz2 |
Source: Avoid gcc 12 compilation warning
GCC 12 warns:
warning: '%04d' directive output may be truncated writing between
4 and 11 bytes into a region of size 5 [-Wformat-truncation=]
The surrounding logic guarantees the formatted integer will never
be more than 4 bytes, but it doesn't hurt to use a larger buffer.
This GCC behavior is documented:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104012#c5
Diffstat (limited to 'Help/guide/tutorial/Step10/MathFunctions/mysqrt.h')
0 files changed, 0 insertions, 0 deletions