summaryrefslogtreecommitdiff
path: root/Examples/javascript/reference/example.cxx
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2014-05-24 00:14:01 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2014-05-24 13:13:32 +0100
commitf39ed94419e4a30b8b2ba1d49c138fd245010262 (patch)
tree532ab2db45a5e048f7a5203637b6bc0529732a7f /Examples/javascript/reference/example.cxx
parent879296f71bcfd56a7659355942c784176ae06e6c (diff)
downloadswig-f39ed94419e4a30b8b2ba1d49c138fd245010262.tar.gz
Fix compiler warnings in examples when using -std=c++98 -std=gnu89 -pedantic -Wreturn-type
Diffstat (limited to 'Examples/javascript/reference/example.cxx')
-rw-r--r--Examples/javascript/reference/example.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/javascript/reference/example.cxx b/Examples/javascript/reference/example.cxx
index 8a513bf49..9dbaed2ee 100644
--- a/Examples/javascript/reference/example.cxx
+++ b/Examples/javascript/reference/example.cxx
@@ -19,7 +19,7 @@ Vector operator+(const Vector &a, const Vector &b) {
char *Vector::print() {
static char temp[512];
- sprintf(temp,"Vector %p (%g,%g,%g)", this, x,y,z);
+ sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
return temp;
}