Fix abuses of the RESIZE() macro in array.c, of the form:

x = RESIZE(x, type, size);

which should just be:

RESIZE(x, type, size);

The erroneous use is undefined behaviour according to the C standard, and
causes new versions of gcc (and, apparently, clang) to throw a warning.

Reported by nenolod/moogle.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@227 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2013-02-16 08:11:07 +00:00
parent 934d19aaa2
commit 1390402af1
2 changed files with 9 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
[Changes 1.2c01]
* Fix abuses of the RESIZE macro. Reported by nenolod. (caf)
* Clears up a crash and some build warnings in the acro plugin. (caf)
* Applied patches from jdhore to clean up the plugin building