GNOME Bugzilla – Bug 574447
gstadder.c: line 904: error C2036: 'gpointer' : unknown size
Last modified: 2009-03-07 07:44:22 UTC
Please describe the problem: I get "error C2036: 'gpointer' : unknown size" using msvc to compile gstadder.c. This URL describes the error: http://msdn.microsoft.com/en-us/library/1kay26wa.aspx It can be fixed by casting to (guint8*) first. So you end up with: memset ((guint8*)outdata + insize, 0, outsize - insize); Steps to reproduce: Compile gstadder.c using visual C++ (vs 2008). Actual results: Compile error Expected results: Does this happen every time? Yes Other information:
This is fixed in GIT already: commit 6b1e08f277901442113a509a02eeaf3fa79a3c1e Author: Jan Schmidt <jan.schmidt@sun.com> Date: Fri Jan 30 17:16:39 2009 +0000 Don't do void pointer arithmetic.