Patch to fix a couple of compiler warnings from 80a5cf64

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Patch to fix a couple of compiler warnings from 80a5cf64
Date: 2014-04-13 04:59:28
Message-ID: CAApHDvqwLfEfxTkgkFoUzhcLsAS7dAhhzhNJ4x6B-98y+-wLZQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The attached patch fixes a couple of compiler warnings seen by the MSVC
build.

contrib\pg_trgm\trgm_regexp.c(234): warning C4305: 'initializing' :
truncation from 'double' to 'const float4' [D:\Postgres\b\pg_trgm.vcxproj]
contrib\pg_trgm\trgm_regexp.c(235): warning C4305: 'initializing' :
truncation from 'double' to 'const float4' [D:\Postgres\b\pg_trgm.vcxproj]

2 Warning(s)

I'm not quite sure why I get 2 warnings rather than 8, but the attached
seems to make them go away, for what it's worth.

Regards

David Rowley

Attachment Content-Type Size
trgm_regexp_warning_fix.patch application/octet-stream 841 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2014-04-13 05:10:15 Re: [COMMITTERS] pgsql: Add ALTER TABLESPACE ... MOVE command
Previous Message Stephen Frost 2014-04-13 04:52:12 Re: WIP patch (v2) for updatable security barrier views