mirror of
https://github.com/reactos/CMake.git
synced 2024-12-05 02:06:34 +00:00
Merge topic 'suppress-Wcast-align'
b9c4181
libarchive: Fix purposeful crash87fde60
Suppress -Wcast-align in curl and bzip2
This commit is contained in:
commit
6afc8fed13
@ -47,6 +47,9 @@
|
||||
/* warning C4127: conditional expression is constant*/
|
||||
# pragma warning(disable:4127)
|
||||
#endif
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic ignored "-Wcast-align"
|
||||
#endif
|
||||
|
||||
/*-- General stuff. --*/
|
||||
|
||||
|
@ -42,6 +42,10 @@
|
||||
#define WIN32
|
||||
#endif
|
||||
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic ignored "-Wcast-align"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Include configuration script results or hand-crafted
|
||||
* configuration file for platforms which lack config tool.
|
||||
|
@ -69,7 +69,7 @@ diediedie(void)
|
||||
/* Cause a breakpoint exception */
|
||||
DebugBreak();
|
||||
#endif
|
||||
*(char *)0 = 1; /* Deliberately segfault and force a coredump. */
|
||||
*(char *)1 = 1; /* Deliberately segfault and force a coredump. */
|
||||
_exit(1); /* If that didn't work, just exit with an error. */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user