gitypelib: Fix compiler warnings

These variables are unused.

https://bugzilla.gnome.org/show_bug.cgi?id=665249
This commit is contained in:
Jasper St. Pierre 2011-11-28 04:59:47 -05:00
parent fd0625aa6e
commit cfcbd719ea

View File

@ -645,12 +645,9 @@ validate_error_type_blob (GITypelib *typelib,
GError **error)
{
ErrorTypeBlob *blob;
Header *header;
blob = (ErrorTypeBlob*)&typelib->data[offset];
header = (Header *)typelib->data;
if (!blob->pointer)
{
g_set_error (error,
@ -850,8 +847,6 @@ validate_function_blob (ValidateContext *ctx,
{
GITypelib *typelib = ctx->typelib;
FunctionBlob *blob;
SignatureBlob *sigblob;
gboolean is_method;
if (typelib->len < offset + sizeof (FunctionBlob))
{
@ -881,19 +876,6 @@ validate_function_blob (ValidateContext *ctx,
if (!validate_name (typelib, "function symbol", typelib->data, blob->symbol, error))
return FALSE;
switch (container_type)
{
case BLOB_TYPE_BOXED:
case BLOB_TYPE_STRUCT:
case BLOB_TYPE_UNION:
case BLOB_TYPE_OBJECT:
case BLOB_TYPE_INTERFACE:
is_method = !(blob->constructor || blob->setter || blob->getter || blob->wraps_vfunc);
break;
default:
is_method = FALSE;
}
if (blob->constructor)
{
switch (container_type)
@ -946,8 +928,6 @@ validate_function_blob (ValidateContext *ctx,
if (!validate_signature_blob (typelib, blob->signature, error))
return FALSE;
sigblob = (SignatureBlob*) &typelib->data[blob->signature];
if (blob->constructor)
{
SimpleTypeBlob *simple = return_type_from_signature (typelib,