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:
@@ -137,4 +137,20 @@ class CowDiskImage : public DiskImage
|
||||
virtual std::streampos write(const uint8_t *data, std::streampos offset);
|
||||
};
|
||||
|
||||
void SafeRead(std::ifstream &stream, void *data, int count);
|
||||
|
||||
template<class T>
|
||||
void SafeRead(std::ifstream &stream, T &data);
|
||||
|
||||
template<class T>
|
||||
void SafeReadSwap(std::ifstream &stream, T &data);
|
||||
|
||||
void SafeWrite(std::ofstream &stream, const void *data, int count);
|
||||
|
||||
template<class T>
|
||||
void SafeWrite(std::ofstream &stream, const T &data);
|
||||
|
||||
template<class T>
|
||||
void SafeWriteSwap(std::ofstream &stream, const T &data);
|
||||
|
||||
#endif // __DISK_IMAGE_HH__
|
||||
|
||||
Reference in New Issue
Block a user