On Wed, 31 Mar 2021 at 12:17, Alvaro Herrera <[email protected]> wrote: > > Improve PQtrace() output format
I see the Visual Studio buildfarm members have been getting a compiler warning since this commit [1] (ClCompile target) -> src/interfaces/libpq/fe-trace.c(87): warning C4133: 'function': incompatible types - from 'long *' to 'const time_t *const ' [C:\\pgbuildfarm\\pgbuildroot\\HEAD\\pgsql.build\\libpq.vcxproj] It looks like this is due to long being 32-bits on Visual Studio. We could just assign tval.tv_sec to a local time_t value to get rid of it. See attached. David [1] https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=dory&dt=2021-04-06%2001%3A00%3A07&stg=make
fix_fe-trace_compiler_warning.patch
Description: Binary data
