From: José Fonseca Date: Thu, 18 Apr 2013 05:21:04 +0000 (+0100) Subject: ralloc: Move declarations before statements. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=392f6cfced304e8693fc93279560ab5dcc033d02;p=mesa.git ralloc: Move declarations before statements. Trivial. Should fix MSVC build. --- diff --git a/src/glsl/ralloc.c b/src/glsl/ralloc.c index 02816425221..e79dad764bb 100644 --- a/src/glsl/ralloc.c +++ b/src/glsl/ralloc.c @@ -107,11 +107,13 @@ void * ralloc_size(const void *ctx, size_t size) { void *block = calloc(1, size + sizeof(ralloc_header)); + ralloc_header *info; + ralloc_header *parent; if (unlikely(block == NULL)) return NULL; - ralloc_header *info = (ralloc_header *) block; - ralloc_header *parent = ctx != NULL ? get_header(ctx) : NULL; + info = (ralloc_header *) block; + parent = ctx != NULL ? get_header(ctx) : NULL; add_child(parent, info);