diff options
Diffstat (limited to 'src/shared/tools.h')
| -rw-r--r-- | src/shared/tools.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/tools.h b/src/shared/tools.h index 6e7eeab..44be57d 100644 --- a/src/shared/tools.h +++ b/src/shared/tools.h @@ -758,7 +758,7 @@ template<class T> struct hashnameset : hashbase<hashnameset<T>, T, const char *, template<class U> static inline const char *getkey(const U &elem) { return elem.name; } template<class U> static inline const char *getkey(U *elem) { return elem->name; } static inline T &getdata(T &elem) { return elem; } - template<class K> static inline void setkey(T &elem, const K &key) {} + template<class K> static inline void setkey(T &, const K &) {} template<class V> T &add(const V &elem) { return basetype::access(getkey(elem), elem); @@ -1023,7 +1023,7 @@ extern bool findzipfile(const char *filename); extern stream *openrawfile(const char *filename, const char *mode); extern stream *openzipfile(const char *filename, const char *mode); extern stream *openfile(const char *filename, const char *mode); -extern stream *opentempfile(const char *filename, const char *mode); +extern stream *opentempfile(); extern stream *opengzfile(const char *filename, const char *mode, stream *file = NULL, int level = Z_BEST_COMPRESSION); extern stream *openutf8file(const char *filename, const char *mode, stream *file = NULL); extern char *loadfile(const char *fn, size_t *size, bool utf8 = true); |
