projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare for '-Wignored-qualifiers'
[lttng-tools.git]
/
src
/
common
/
tracker.cpp
diff --git
a/src/common/tracker.cpp
b/src/common/tracker.cpp
index 84b6c6b8f11c33f31039f711ddb0061f5d6ae568..c5efaa3198b6aa5cfaea5c038e491ccfee92cc89 100644
(file)
--- a/
src/common/tracker.cpp
+++ b/
src/common/tracker.cpp
@@
-18,6
+18,8
@@
#include <stdbool.h>
#include <stdbool.h>
+#include <type_traits>
+
struct process_attr_tracker_values_comm_header {
uint32_t count;
};
struct process_attr_tracker_values_comm_header {
uint32_t count;
};
@@
-33,16
+35,16
@@
struct process_attr_tracker_value_comm {
};
#define GET_INTEGRAL_COMM_VALUE(value_ptr, as_type) \
};
#define GET_INTEGRAL_COMM_VALUE(value_ptr, as_type) \
- ((as_type)(
is_signed(as_type)
? (value_ptr)->u._signed : \
+ ((as_type)(
std::is_signed<as_type>::value
? (value_ptr)->u._signed : \
(value_ptr)->u._unsigned))
(value_ptr)->u._unsigned))
-#define SET_INTEGRAL_COMM_VALUE(comm_value, val
ue
) \
- if (
is_signed(typeof(value))
) { \
+#define SET_INTEGRAL_COMM_VALUE(comm_value, val) \
+ if (
std::is_signed<typeof(val)>::value
) { \
(comm_value)->u._signed = \
(comm_value)->u._signed = \
- (typeof((comm_value)->u._signed)) val
ue
; \
+ (typeof((comm_value)->u._signed)) val; \
} else { \
(comm_value)->u._unsigned = \
} else { \
(comm_value)->u._unsigned = \
- (typeof((comm_value)->u._unsigned)) val
ue
; \
+ (typeof((comm_value)->u._unsigned)) val; \
}
static inline bool is_virtual_process_attr(enum lttng_process_attr process_attr)
}
static inline bool is_virtual_process_attr(enum lttng_process_attr process_attr)
This page took
0.024702 seconds
and
4
git commands to generate.