mirror of https://github.com/OpenTTD/OpenTTD
(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
parent
5396d6167b
commit
ba5e66a763
|
@ -307,9 +307,10 @@ public:
|
||||||
/** all deallocations should happen here */
|
/** all deallocations should happen here */
|
||||||
static FORCEINLINE void RawFree(CHdr *p)
|
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);
|
assert(p != CBlobBaseSimple::hdrEmpty);
|
||||||
|
|
||||||
|
/* In case GCC warns about the following, see GCC's PR38509 why it is bogus. */
|
||||||
free(p);
|
free(p);
|
||||||
}
|
}
|
||||||
/** fixing the four bytes at the end of blob data - useful when blob is used to hold string */
|
/** fixing the four bytes at the end of blob data - useful when blob is used to hold string */
|
||||||
|
|
Loading…
Reference in New Issue