diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2009-06-12 09:05:23 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2009-06-12 09:05:23 +0000 |
| commit | 925b1b25f1d16fd8103b31fb9dbe942689071d7a (patch) | |
| tree | 1569f2217d555395c6690fec346f368c1859aebb /sys | |
| parent | f6f8d7b60130ed3fe254ba5e933d93981e319d51 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/sys/kobj.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/sys/kobj.h b/sys/sys/kobj.h index 84f03d9216c9..3143bea42901 100644 --- a/sys/sys/kobj.h +++ b/sys/sys/kobj.h @@ -91,13 +91,11 @@ struct kobjop_desc { /* * Shorthand for constructing method tables. + * The ternary operator is (ab)used to provoke a warning when FUNC + * has a signature that is not compatible with kobj method signature. */ -#if 1 -#define KOBJMETHOD(NAME, FUNC) { &NAME##_desc, (kobjop_t) FUNC } -#else /* notyet */ #define KOBJMETHOD(NAME, FUNC) \ { &NAME##_desc, (kobjop_t) (1 ? FUNC : (NAME##_t *)NULL) } -#endif /* * |
