소스 검색

vc4: Add missing braces in initializer

Silences the following GCC warning:

mesa/src/gallium/drivers/vc4/vc4_qir_schedule.c: In function 'qir_schedule_instructions':
mesa/src/gallium/drivers/vc4/vc4_qir_schedule.c:578:16: warning: missing braces around initializer [-Wmissing-braces]
         struct schedule_state state = { 0 };
                ^

Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
tags/11.2-branchpoint
Rhys Kidd 9 년 전
부모
커밋
aa82cc4b22
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/gallium/drivers/vc4/vc4_qir_schedule.c

+ 1
- 1
src/gallium/drivers/vc4/vc4_qir_schedule.c 파일 보기

@@ -575,7 +575,7 @@ void
qir_schedule_instructions(struct vc4_compile *c)
{
void *mem_ctx = ralloc_context(NULL);
struct schedule_state state = { 0 };
struct schedule_state state = { { 0 } };

if (debug) {
fprintf(stderr, "Pre-schedule instructions\n");

Loading…
취소
저장