summaryrefslogtreecommitdiff
path: root/sfntly/port/type.h
diff options
context:
space:
mode:
authorarthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51>2011-06-27 21:23:55 +0000
committerarthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51>2011-06-27 21:23:55 +0000
commit0e411afcef9fc211b3f8f70d31bc1dfa4c0f85d3 (patch)
tree374538b4d2bd2da51f4470b0c85ab21e21a9655f /sfntly/port/type.h
parent464987db923362e596195f9eebd34fc508c9a412 (diff)
downloadsrc-0e411afcef9fc211b3f8f70d31bc1dfa4c0f85d3.tar.gz
Added a preprocessor flag SFNTLY_NO_EXCEPTION to disable exception handling. Fixed the code to make GCC -Wall -Werror flags happy.
git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@3 672e30a5-4c29-85ac-ac6d-611c735e0a51
Diffstat (limited to 'sfntly/port/type.h')
-rw-r--r--sfntly/port/type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfntly/port/type.h b/sfntly/port/type.h
index ab55b97..25b697e 100644
--- a/sfntly/port/type.h
+++ b/sfntly/port/type.h
@@ -78,7 +78,7 @@ inline To down_cast(From* f) { // so we only accept pointers
}
#if !defined(WIN32)
- #define UNREFERENCED_PARAMETER(p)
+ #define UNREFERENCED_PARAMETER(p) do { (void)p; } while (0)
#endif
#endif // TYPOGRAPHY_FONT_SFNTLY_SRC_SFNTLY_PORT_TYPE_H_