summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step7/MathFunctions
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2018-03-06 10:50:55 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-06 13:35:08 (GMT)
commit50b7be6d1f2022483cb75a5347a1e1a70a2994e0 (patch)
tree7f90d96664a1846fe0c43d3f965ed66281fa4626 /Help/guide/tutorial/Step7/MathFunctions
parentac925ec09e2dd4b373353d312e9e50b6165a66d0 (diff)
downloadCMake-50b7be6d1f2022483cb75a5347a1e1a70a2994e0.zip
CMake-50b7be6d1f2022483cb75a5347a1e1a70a2994e0.tar.gz
CMake-50b7be6d1f2022483cb75a5347a1e1a70a2994e0.tar.bz2
Autogen: Check if a file is empty before reading it
Calling `std::string::front()` on an empty string results in an undefined behavior by the C++ standard. In gcc8 it causes an assertion to fail. This adds a check to `AUTOGEN` if a file to read is empty and in case avoids the use of an empty `std::string` buffer. Closes #17793
Diffstat (limited to 'Help/guide/tutorial/Step7/MathFunctions')
0 files changed, 0 insertions, 0 deletions