Reverts r11236 while fixing the FileNameHashCacheUser code. Passes an icc test.
#include <exception>
-#if __GNUC__
-__attribute__((unused))
-#endif
static unsigned int FileNameHashCached(const char *fname);
// simple exception to report custom errors
return lastHash;
}
+/// Avoids "defined but not used" warnings for FileNameHashCached
+class FileNameHashCacheUser
+{
+ bool use(void *ptr=NULL) { return ptr != (void*)&FileNameHashCached; }
+};
+
#if !defined(TexcHere)
# define TexcHere(msg) TextException((msg), __FILE__, __LINE__, \
(FileNameHashCached(__FILE__)<<14) | (__LINE__ & 0x3FFF))