Patch to fix a couple of compiler warnings from 80a5cf64 - Mailing list pgsql-hackers

From David Rowley
Subject Patch to fix a couple of compiler warnings from 80a5cf64
Date
Msg-id CAApHDvqwLfEfxTkgkFoUzhcLsAS7dAhhzhNJ4x6B-98y+-wLZQ@mail.gmail.com
Whole thread Raw
Responses Re: Patch to fix a couple of compiler warnings from 80a5cf64
List 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

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: PostgreSQL in Windows console and Ctrl-C
Next
From: Stephen Frost
Date:
Subject: Re: [COMMITTERS] pgsql: Add ALTER TABLESPACE ... MOVE command