summaryrefslogtreecommitdiff
path: root/src/Alloc.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2005-05-17 08:10:10 +0000
committerEgbert Eich <eich@suse.de>2005-05-17 08:10:10 +0000
commitb0a241cf7c7ab3840929da3b1aabdda7bab22517 (patch)
tree1273df17e9364156d5ad5de39557762cfe48abad /src/Alloc.c
parent2b42b9154f9886ab05da1c3d6ce75fd95f59e04e (diff)
gcc4 allows to check if sentinels are correct (a sentinel is the
terminating element in a varargs list). A sentinel needs to be NULL, not 0 - which doesn't make a difference on 32bit but matters on 64bit. Furthermore it can be told that functions have a printf-like format string and argument list so that they can verify that both match. To use these features certain attributes need to be set - which are compiler specific. To do this we define macros which are expanded depending on the compiler version. For now we put those in include/Xfuncproto.h (the XFree86 DDX layer contains a file compiler.h which however is not visible outside the DDX) (Bugzilla #3268).
Diffstat (limited to 'src/Alloc.c')
0 files changed, 0 insertions, 0 deletions