diff options
author | P. J. McDermott <pj@pehjota.net> | 2023-10-18 15:09:04 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2023-10-18 15:14:23 (EDT) |
commit | c936dbfcd6c26f0d143f01a6c7a5f0f4e27ac6eb (patch) | |
tree | a3b31d6b74157bb2d6e4962c84cdedcad37eaf0e /src | |
parent | 093d80601165e8c751e9eaac2e7b3380d7d5ea06 (diff) | |
download | mazefight-master.zip mazefight-master.tar.gz mazefight-master.tar.bz2 |
The GCC analyzer looks for unchecked possibly null allocation function
call results being dereferenced or passed to functions requiring non-
null arguments.
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.h b/src/char/char.h index f5054d5..dc79cf6 100644 --- a/src/char/char.h +++ b/src/char/char.h @@ -59,7 +59,7 @@ struct mf_char { }; struct mf_char * -mf_char_new(size_t size); +mf_char_new(size_t size) __attribute__((__malloc__)); #define mf_char_init(c, t_c, name) \ do { \ |