summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-27 02:00:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:22 -0500
commitc9ae85d19adf5720f4c9b8e8c4fdde434293df67 (patch)
tree567c848f37e37aaa1f48143bd74947706b4b69ab /source4/build
parentdf7ec4a31a0c29b18e41f3b31e3d694ac91bea65 (diff)
downloadsamba-c9ae85d19adf5720f4c9b8e8c4fdde434293df67.tar.gz
samba-c9ae85d19adf5720f4c9b8e8c4fdde434293df67.tar.bz2
samba-c9ae85d19adf5720f4c9b8e8c4fdde434293df67.zip
r18936: hopefully fix the test for negative enum values. When a compiler
truncates the enums, the test was passing. (This used to be commit c6216f7dbf68012fa8351dcae17fe4c7ab165b58)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/m4/check_cc.m412
1 files changed, 3 insertions, 9 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index 2425d3da4b..f1b4f82cec 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -37,17 +37,11 @@ AC_CACHE_CHECK([that the C compiler understands negative enum values],SMB_BUILD_
enum negative_values { NEGATIVE_VALUE = 0xFFFFFFFF };
int main(void) {
enum negative_values v1 = NEGATIVE_VALUE;
- unsigned v2 = NEGATIVE_VALUE;
-
- if (v1 != 0xFFFFFFFF) {
- printf("%u != 0xFFFFFFFF\n", v1);
- return 1;
- }
- if (v2 != 0xFFFFFFFF) {
- printf("%u != 0xFFFFFFFF\n", v2);
+ unsigned v2 = 0xFFFFFFFF;
+ if (v1 != v2) {
+ printf("v1=0x%08x v2=0x%08x\n", v1, v2);
return 1;
}
-
return 0;
}
],