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:
@@ -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);
|
||||
|
||||
@@ -236,4 +236,7 @@ class Drainable
|
||||
|
||||
};
|
||||
|
||||
DrainManager *createDrainManager();
|
||||
void cleanupDrainManager(DrainManager *drain_manager);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -418,6 +418,8 @@ class EventQueue : public Serializable
|
||||
#endif
|
||||
};
|
||||
|
||||
void dumpMainQueue();
|
||||
|
||||
#ifndef SWIG
|
||||
class EventManager
|
||||
{
|
||||
|
||||
@@ -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__
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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__
|
||||
|
||||
@@ -46,6 +46,12 @@
|
||||
|
||||
namespace Stats {
|
||||
|
||||
double statElapsedTime();
|
||||
|
||||
Tick statElapsedTicks();
|
||||
|
||||
Tick statFinalTick();
|
||||
|
||||
void initSimStats();
|
||||
|
||||
/**
|
||||
|
||||
@@ -472,4 +472,6 @@ class System : public MemObject
|
||||
|
||||
};
|
||||
|
||||
void printSystems();
|
||||
|
||||
#endif // __SYSTEM_HH__
|
||||
|
||||
Reference in New Issue
Block a user