From 319443d42dbed8d6b07b8a2b7a0e565ff5bd8abf Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Tue, 19 Feb 2013 05:56:07 -0500 Subject: 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. --- src/python/swig/pyobject.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/python/swig/pyobject.hh') diff --git a/src/python/swig/pyobject.hh b/src/python/swig/pyobject.hh index ab22df864..8debcc82c 100644 --- a/src/python/swig/pyobject.hh +++ b/src/python/swig/pyobject.hh @@ -31,12 +31,15 @@ #include #include "base/types.hh" +#include "dev/etherint.hh" #include "sim/serialize.hh" #include "sim/sim_object.hh" extern "C" SimObject *convertSwigSimObjectPtr(PyObject *); SimObject *resolveSimObject(const std::string &name); +EtherInt * lookupEthPort(SimObject *so, const std::string &name, int i); + /** * Connect the described MemObject ports. Called from Python via SWIG. */ -- cgit v1.2.3