diff options
author | rillig <rillig@pkgsrc.org> | 2008-01-06 19:13:31 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2008-01-06 19:13:31 +0000 |
commit | 279137b7abf93c52b0018b38068eef2ebba67b90 (patch) | |
tree | 06c15b4255279945d6fe5848bc21b1c7cc016115 /mk/help | |
parent | bd46762046875ec3ae225dcf5d6e3f71b1d7f063 (diff) | |
download | pkgsrc-279137b7abf93c52b0018b38068eef2ebba67b90.tar.gz |
C compilers also emit error messages that are worth being explain.
Diffstat (limited to 'mk/help')
-rw-r--r-- | mk/help/c.help | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mk/help/c.help b/mk/help/c.help new file mode 100644 index 00000000000..a8d37b2226a --- /dev/null +++ b/mk/help/c.help @@ -0,0 +1,16 @@ +# $NetBSD: c.help,v 1.1 2008/01/06 19:13:31 rillig Exp $ + +# This file contains typical error messages from C++ compilers and +# instructions how to fix them properly. + +# === Invalid lvalue in increment === +# +# Once upon a time, it was possible to say "((int)foo)++". With gcc4, +# this no longer works, and now you have to say "foo = (int)foo + 1". +# +# This becomes more complicated in macros that access datastructures, +# which involves much pointer arithmetics. A popular example is obstack, +# a collection of "object stack macros". A patch for fixing that is in +# devel/coconut/patches/patch-ab revision 1.1. +# +# Keywords: C lvalue increment obstack obstack_ptr_grow |