Use attribute 'warn_unused_result'
Đang mở
- Ngôn ngữ chính
- C
- Star
- 5.6k
- Fork
- 510
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi Salvatore.
Thanks for releasing this. You should consider using the GCC (and compatible) attribute "warn_unused_result" on the functions that may call realloc().
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#index-g_t_0040code_007bwarn_005funused_005fresult_007d-attribute-2997
It's not a perfect backstop, but it can be very helpful in calling attention to usage that would otherwise be a very subtle error.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.