projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: clang warning '-Wnull-pointer-subtraction' in lttng_ust_is_pointer_type
[lttng-ust.git]
/
include
/
lttng
/
ust-utils.h
diff --git
a/include/lttng/ust-utils.h
b/include/lttng/ust-utils.h
index 25b8c7fdb835d55c9f815278c4c2aa1386c1a648..d815cf0cc465ef5f3a8864e12d5125fed85057ff 100644
(file)
--- a/
include/lttng/ust-utils.h
+++ b/
include/lttng/ust-utils.h
@@
-68,7
+68,7
@@
#else
/* The difference between two pointers is an integer. */
#define lttng_ust_is_pointer_type(type) \
#else
/* The difference between two pointers is an integer. */
#define lttng_ust_is_pointer_type(type) \
- (lttng_ust_is_integer_type(typeof(((type)
0 - (type)0
))) && !lttng_ust_is_integer_type(type))
+ (lttng_ust_is_integer_type(typeof(((type)
1 - (type)1
))) && !lttng_ust_is_integer_type(type))
#endif
#endif
This page took
0.023715 seconds
and
4
git commands to generate.