Compilation warning on 9.5

From: Vicky Vergara <vicky_vergara(at)hotmail(dot)com>
To: "pgeu-general(at)postgresql(dot)org" <pgeu-general(at)postgresql(dot)org>
Subject: Compilation warning on 9.5
Date: 2016-02-12 15:54:00
Message-ID: BAY177-W104EC0B93C9FC5453B04CD8AA90@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgeu-general

Hello,

I am a pgRouting developer,
In my CmakeLists.txt I use this flags:
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -fPIC -O2 -g -Wall -Wconversion -pedantic -fmax-errors=10 -Wmissing-prototypes -frounding-math")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -fPIC -O2 -g -Wconversion -Wall -pedantic -fmax-errors=10 -Wextra -frounding-math -Wno-deprecated")
(Currently I am using 9.3 for developing)
but for testing I use travis CI framework and test pgRouting using postgresql 9.1 to 9.5

I wonder what is wrong with the flags when using 9.5 because I am getting this kind of warnings when using 9.5, but these warnings don't show on 9.1 to 9.4.

/usr/include/postgresql/9.5/server/port/atomics/generic.h: In function ‘pg_atomic_add_fetch_u32_impl’:
/usr/include/postgresql/9.5/server/port/atomics/generic.h:238:2: warning: conversion to ‘uint32’ from ‘int32’ may change the sign of the result [-Wsign-conversion]

/usr/include/postgresql/9.5/server/c.h:299:33: warning: ISO C++ does not support ‘__int128’ for ‘uint128’ [-pedantic]
/usr/include/postgresql/9.5/server/c.h:418:36: warning: ISO C++ forbids zero-size array ‘vl_dat’ [-pedantic]
/usr/include/postgresql/9.5/server/c.h:451:37: warning: ISO C++ forbids zero-size array ‘values’ [-pedantic]
/usr/include/postgresql/9.5/server/c.h:462:36: warning: ISO C++ forbids zero-size array ‘values’ [-pedantic]

you can see a full travis test here:
https://travis-ci.org/pgRouting/pgrouting/builds/108791787
(I have my own warnings which I am fixing and very visible from 9.1 to 9.4)

This is the first time I post something to a postgresql mailing list, so maybe I chose the wrong mailing list,
if that is the case, please tell me to which mailing list I should send this.

Thanks
Vicky Vergara

Responses

Browse pgeu-general by date

  From Date Subject
Next Message Christoph Berg 2016-02-12 17:12:17 Re: Compilation warning on 9.5
Previous Message Daniel Gustafsson 2016-01-26 14:34:32 Re: PostgreSQL Europe 2016 Elections: Open for nominations