Opened 5 years ago
Closed 5 years ago
#4527 closed defect (fixed)
Travis: error: unrecognized command line option '-Wno-unknown-warning-option' [-Werror]
Reported by: | strk | Owned by: | Algunenano |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 3.0.0 |
Component: | QA/buildbots | Version: | 2.5.x -- EOL |
Keywords: | Cc: |
Description
See https://travis-ci.org/postgis/postgis/jobs/594444788#L1229
We seem to instruct Travis to pass that switch to compiler line:
ci/travis/run_tests.sh:5:WARNINGS_DISABLED="-Wno-unused-parameter -Wno-implicit-fallthrough -Wno-unknown-warning-option -Wno-cast-function-type"
But maybe it's not supported by the GCC used by travis ? It's gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 according to https://travis-ci.org/postgis/postgis/jobs/594444788#L29
Change History (5)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Owner: | changed from | to
---|
Testing the patch in https://github.com/postgis/postgis/pull/490
comment:4 by , 5 years ago
Why we'd want to ignore signedness in comparison I dunno, btw.
That warning comes from Postgresql internal macros so it needs to be fixed there first (and then wait for all support for previous released to be dropped):
#define ARR_DATA_OFFSET(a) \ (ARR_HASNULL(a) ? (a)->dataoffset : ARR_OVERHEAD_NONULLS(ARR_NDIM(a))) /* * Returns a pointer to the actual array data. */ #define ARR_DATA_PTR(a) \ (((char *) (a)) + ARR_DATA_OFFSET(a))
The true error is right on top of that:
This was changed in r17865
I don't know where
GCC_VERSION
comes from, but it isn't a predefined macro in my installation (gcc version 9.2.0).