Syntax error in malloc_np.h

看板FB_current作者時間13年前 (2012/06/03 18:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
Hi, it seems that there is a syntax error in malloc_np.h. It contains lines like: int allocm(void **ptr, size_t *rsize, size_t size, int flags) __attribute__(nonnull(1)); The problem is that the syntax of the attributes actually requires two parenthesis: __attribute__((nonnull(1))); Our gcc seems to swallow either of both, but gcc47 chokes on the missing '(' as does clang++. Given that we have __nonnull(x) in cdefs.h I suppose the above is better replaced with __nonnull(1)? harti _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1Fopqk8Y (FB_current)
文章代碼(AID): #1Fopqk8Y (FB_current)