From: Brian Paul Date: Wed, 16 Feb 2011 21:17:41 +0000 (-0700) Subject: rtasm: add dummy return statement to silence MSVC warning X-Git-Tag: mesa-7.11-rc1~2033 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5df19492322cbe3a61d45981111fd862772f427;p=platform%2Fupstream%2Fmesa.git rtasm: add dummy return statement to silence MSVC warning And use assert(0) instead of abort() to be consistent with rest of Gallium. --- diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c index 75b0f6a..b03dd3a 100644 --- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c +++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c @@ -2132,7 +2132,8 @@ struct x86_reg x86_fn_arg( struct x86_function *p, return x86_make_disp(x86_make_reg(file_REG32, reg_SP), p->stack_offset + arg * 4); /* ??? */ default: - abort(); + assert(0 && "Unexpected x86 target ABI in x86_fn_arg"); + return x86_make_reg(file_REG32, reg_CX); /* not used / silence warning */ } }