diff --git a/Code/Mantid/Framework/Algorithms/src/Segfault.cpp b/Code/Mantid/Framework/Algorithms/src/Segfault.cpp index 203979191d3c8cb667f9577c84cd0eaf17a8d387..2479120f24db684ac24137cf0375614c41a24746 100644 --- a/Code/Mantid/Framework/Algorithms/src/Segfault.cpp +++ b/Code/Mantid/Framework/Algorithms/src/Segfault.cpp @@ -48,17 +48,9 @@ void Segfault::exec() { g_log.error("Crashing mantid now"); if (!dryrun) { -#if __clang__ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wc++11-compat-deprecated-writable-strings" -#pragma clang diagnostic ignored "-Wwritable-strings" -#endif - // writing to read-only memory - char *s = "hello world"; - *s = 'H'; -#if __clang__ -#pragma clang diagnostic pop -#endif + // NULL pointer dereference + int *ptr = NULL; + *ptr = 1; } }