Re: [PATCH] cld: check parameters for HAIL_LOG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/03/2010 07:45 PM, Colin McCabe wrote:
Another attempt at escaping the overly-aggressive spam filters...

GCC has a nifty ability to typecheck varargs functions that follow the printf
conventions. This change uses that in HAIL_LOG. If you build with -Wall, gcc
can now give warnings about HAIL_LOG invocations where there are too many or
too few arguments, or arguments of the wrong types.

For non-GCC compilers, don't do anything (yet).

Signed-off-by: Colin McCabe<cmccabe@xxxxxxxxxxxxxx>
---
  include/hail_log.h |    9 ++++++++-
  1 files changed, 8 insertions(+), 1 deletions(-)

applied


--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux