summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2005-04-22 17:56:01 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2005-04-22 17:56:01 +0000
commit7afc9558e02e326b74cb3ff3eddbb6a44ee9b561 (patch)
treef37145f38c8e18d22de2533e9fe39da4306feb58
parente73e76dc4239b99306b7b3c7a9316958106e5f90 (diff)
downloadbcm5719-llvm-7afc9558e02e326b74cb3ff3eddbb6a44ee9b561.tar.gz
bcm5719-llvm-7afc9558e02e326b74cb3ff3eddbb6a44ee9b561.zip
Silence gcc-4.0.0 warnings.
llvm-svn: 21453
-rw-r--r--llvm/lib/System/Unix/Signals.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/System/Unix/Signals.inc b/llvm/lib/System/Unix/Signals.inc
index c6952298f43..3e49cb71ff8 100644
--- a/llvm/lib/System/Unix/Signals.inc
+++ b/llvm/lib/System/Unix/Signals.inc
@@ -93,10 +93,10 @@ void PrintStackTrace() {
// Try to run c++filt or gc++filt. If neither is found, call back on 'cat'
// to print the mangled stack trace. If we can't find cat, just exit.
- execlp("c++filt", "c++filt", 0);
- execlp("gc++filt", "gc++filt", 0);
- execlp("cat", "cat", 0);
- execlp("/bin/cat", "cat", 0);
+ execlp("c++filt", "c++filt", (char*)NULL);
+ execlp("gc++filt", "gc++filt", (char*)NULL);
+ execlp("cat", "cat", (char*)NULL);
+ execlp("/bin/cat", "cat", (char*)NULL);
exit(0);
}
#endif
OpenPOWER on IntegriCloud