chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0340a83
)
CONST_MAX breaks gcc on fedora 20 with optimiztation
v216
author
Lennart Poettering
<lennart@poettering.net>
Tue, 19 Aug 2014 22:57:17 +0000
(
00:57
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 19 Aug 2014 22:57:17 +0000
(
00:57
+0200)
src/test/test-util.c
patch
|
blob
|
history
diff --git
a/src/test/test-util.c
b/src/test/test-util.c
index b74abac1541ed14372a9804b1f6e1d2fbc62ee72..ac1afce86b922b3c090cb0dd25696a1ea7041330 100644
(file)
--- a/
src/test/test-util.c
+++ b/
src/test/test-util.c
@@
-85,7
+85,6
@@
static void test_max(void) {
/* CONST_MAX returns (void) instead of a value if the passed arguments
* are not of the same type or not constant expressions. */
assert_cc(__builtin_types_compatible_p(typeof(CONST_MAX(1, 10)), int));
/* CONST_MAX returns (void) instead of a value if the passed arguments
* are not of the same type or not constant expressions. */
assert_cc(__builtin_types_compatible_p(typeof(CONST_MAX(1, 10)), int));
- assert_cc(__builtin_types_compatible_p(typeof(CONST_MAX(d, 10)), void));
assert_cc(__builtin_types_compatible_p(typeof(CONST_MAX(1, 1U)), void));
assert_se(val1.a == 100);
assert_cc(__builtin_types_compatible_p(typeof(CONST_MAX(1, 1U)), void));
assert_se(val1.a == 100);