projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caaa422
)
gcc-compat.h: Fix __must_check.
author
Andre Noll
<maan@systemlinux.org>
Sat, 19 Jan 2008 12:24:04 +0000
(13:24 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Sat, 19 Jan 2008 12:24:04 +0000
(13:24 +0100)
It didn't work for gcc-4.
gcc-compat.h
patch
|
blob
|
history
diff --git
a/gcc-compat.h
b/gcc-compat.h
index c4e43107def98935f6ef1000a20128274a037b8e..61c3c88d1c4551a965aaa22c626ddf8fabec31ba 100644
(file)
--- a/
gcc-compat.h
+++ b/
gcc-compat.h
@@
-16,7
+16,7
@@
#define __printf_1_2 __printf(1,2)
#define __printf_2_3 __printf(2,3)
-# if __GNUC__ >
=3 && __GNUC_MINOR__ > 3
+# if __GNUC__ >
3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3)
# define __must_check __attribute__ ((warn_unused_result))
# else
# define __must_check /* no warn_unused_result */