From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix compiler warning. |
Date: | 2014-01-15 15:33:47 |
Message-ID: | E1W3STT-00087X-9i@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix compiler warning.
Kevin Gritter reports that his compiler complains about inq and outq
being possibly-uninitialized at the point where they are passed to
shm_mq_attach(). They are initialized by the call to
setup_dynamic_shared_memory, but apparently his compiler is inlining
that function and then having doubts about whether the for loop will
always execute at least once. Fix by initializing them to NULL.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/d89746c7c534ef5b061fee0b8f587042f55bd92d
Modified Files
--------------
contrib/test_shm_mq/setup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2014-01-15 15:51:18 | pgsql: test_shm_mq: Fix checks for negative queue size. |
Previous Message | Robert Haas | 2014-01-15 15:19:10 | pgsql: Fix compiler warning: Size isn't 64 bits on 32 bit platforms. |