summaryrefslogtreecommitdiffstats
path: root/Source/cmLoadCommandCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-04-27 12:30:25 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-04-27 12:30:25 (GMT)
commitc19a70b3ada66a59c7a0ff78bf1a4a1cd557db9a (patch)
treea2f31ddd5f89db1ff9474ff996081a09344179a5 /Source/cmLoadCommandCommand.cxx
parent5a4a6a57d1949f0ce457ead1ccdd52a8a4478263 (diff)
downloadCMake-c19a70b3ada66a59c7a0ff78bf1a4a1cd557db9a.zip
CMake-c19a70b3ada66a59c7a0ff78bf1a4a1cd557db9a.tar.gz
CMake-c19a70b3ada66a59c7a0ff78bf1a4a1cd557db9a.tar.bz2
WRN: remove warnings
Diffstat (limited to 'Source/cmLoadCommandCommand.cxx')
-rw-r--r--Source/cmLoadCommandCommand.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx
index b146d2c..60edd56 100644
--- a/Source/cmLoadCommandCommand.cxx
+++ b/Source/cmLoadCommandCommand.cxx
@@ -19,7 +19,9 @@
#include "cmCPluginAPI.cxx"
#include "cmDynamicLoader.h"
#include <signal.h>
+extern "C" void TrapsForSignalsCFunction(int sig);
+
// a class for loadabple commands
class cmLoadedCommand : public cmCommand
{
@@ -103,11 +105,11 @@ public:
if(!remove)
{
- signal(SIGSEGV, cmLoadedCommand::TrapsForSignals);
+ signal(SIGSEGV, TrapsForSignalsCFunction);
#ifdef SIGBUS
- signal(SIGBUS, cmLoadedCommand::TrapsForSignals);
+ signal(SIGBUS, TrapsForSignalsCFunction);
#endif
- signal(SIGILL, cmLoadedCommand::TrapsForSignals);
+ signal(SIGILL, TrapsForSignalsCFunction);
}
else
{
@@ -142,6 +144,12 @@ public:
cmLoadedCommandInfo info;
};
+extern "C" void TrapsForSignalsCFunction(int sig)
+{
+ cmLoadedCommand::TrapsForSignals(sig);
+}
+
+
const char* cmLoadedCommand::LastName = 0;
bool cmLoadedCommand::InitialPass(std::vector<std::string> const& args)