scons: Add warning for missing declarations

This patch enables warnings for missing declarations. To avoid issues
with SWIG-generated code, the warning is only applied to non-SWIG
code.
This commit is contained in:
Andreas Hansson
2013-02-19 05:56:07 -05:00
parent b44e0ce52b
commit 319443d42d
43 changed files with 181 additions and 9 deletions

View File

@@ -53,6 +53,8 @@ void takeCheckpoint(Tick when);
*/
void eventqDump();
void py_interact();
int getRemoteGDBPort();
// Remote gdb base port. 0 disables remote gdb.
void setRemoteGDBPort(int port);

View File

@@ -236,4 +236,7 @@ class Drainable
};
DrainManager *createDrainManager();
void cleanupDrainManager(DrainManager *drain_manager);
#endif

View File

@@ -418,6 +418,8 @@ class EventQueue : public Serializable
#endif
};
void dumpMainQueue();
#ifndef SWIG
class EventManager
{

View File

@@ -31,6 +31,8 @@
#ifndef __SIM_INIT_HH__
#define __SIM_INIT_HH__
#include <Python.h>
/*
* Data structure describing an embedded python file.
*/
@@ -74,8 +76,13 @@ struct EmbeddedSwig
static void initAll();
};
void dumpStatsHandler(int sigtype);
void dumprstStatsHandler(int sigtype);
void exitNowHandler(int sigtype);
void abortHandler(int sigtype);
void initSignals();
int initM5Python();
int m5Main(int argc, char **argv);
PyMODINIT_FUNC initm5(void);
#endif // __SIM_INIT_HH__

View File

@@ -178,6 +178,8 @@ class Serializable
static void unserializeGlobals(Checkpoint *cp);
};
void debug_serialize(const std::string &cpt_dir);
//
// A SerializableBuilder serves as an evaluation context for a set of
// parameters that describe a specific instance of a Serializable. This

View File

@@ -176,4 +176,8 @@ class SimObject : public EventManager, public Serializable, public Drainable
static SimObject *find(const char *name);
};
#ifdef DEBUG
void debugObjectBreak(const char *objs);
#endif
#endif // __SIM_OBJECT_HH__

View File

@@ -46,6 +46,12 @@
namespace Stats {
double statElapsedTime();
Tick statElapsedTicks();
Tick statFinalTick();
void initSimStats();
/**

View File

@@ -472,4 +472,6 @@ class System : public MemObject
};
void printSystems();
#endif // __SYSTEM_HH__