summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-07 20:07:47 +0000
committerrubidium <rubidium@openttd.org>2009-09-07 20:07:47 +0000
commitba5e66a763f15bee33e4b639685f6c08d79fb9e0 (patch)
tree0dec9b540bd9c728732ee1f828357a4a6127289f /src
parent5396d6167b60ffdaeaeade735f897299d7dbd62a (diff)
downloadopenttd-ba5e66a763f15bee33e4b639685f6c08d79fb9e0.tar.xz
(svn r17461) -Document: that a certain compiler warning when compiled without asserts in gcc 4.4+ isn't our fault but GCC's. Includes a reference to the appropriate GCC bug report
Diffstat (limited to 'src')
-rw-r--r--src/misc/blob.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/misc/blob.hpp b/src/misc/blob.hpp
index b7a7f73da..17e3a5947 100644
--- a/src/misc/blob.hpp
+++ b/src/misc/blob.hpp
@@ -307,9 +307,10 @@ public:
/** all deallocations should happen here */
static FORCEINLINE void RawFree(CHdr *p)
{
- /* Just to silence an unsilencable GCC 4.4+ warning */
+ /* Just to silence an unsilencable GCC 4.4+ warning. */
assert(p != CBlobBaseSimple::hdrEmpty);
+ /* In case GCC warns about the following, see GCC's PR38509 why it is bogus. */
free(p);
}
/** fixing the four bytes at the end of blob data - useful when blob is used to hold string */