summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-02 08:13:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-02 08:13:48 +0000
commit547ff10c4dedaba525e3f76b557dab1063848caf (patch)
tree55b3c042b8b7e2010ec0ea8af3099284702084ae
parent64a6f8da1322c7f2c0fb8c8b27bba3d8a0be8f4e (diff)
downloadmandoc-547ff10c4dedaba525e3f76b557dab1063848caf.tar.gz
mandoc-547ff10c4dedaba525e3f76b557dab1063848caf.tar.zst
mandoc-547ff10c4dedaba525e3f76b557dab1063848caf.zip
Added lint to __attribute__ defines.
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index f06831b3..7f02035e 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.55 2009/11/02 08:08:23 kristaps Exp $ */
+/* $Id: main.c,v 1.56 2009/11/02 08:13:48 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -33,7 +33,9 @@
/* FIXME: Intel's compiler? LLVM? pcc? */
#if !defined(__GNUC__) || (__GNUC__ < 2)
-# define __attribute__(x)
+# if !defined(lint)
+# define __attribute__(x)
+# endif
#endif /* !defined(__GNUC__) || (__GNUC__ < 2) */
#ifdef __linux__