[Debian-med-packaging] cc1plus: error: -Wformat-security ignored without -Wformat (Re: CMake help needed to enable hdf5 for gatb-core)

Fabian Klötzl kloetzl at evolbio.mpg.de
Sun Dec 10 10:31:10 UTC 2017


Hi,

On 10.12.2017 08:13, Andreas Tille wrote:
> /build/gatb-core-1.4.0+dfsg/gatb-core/src/gatb/bank/impl/BankBinary.cpp:54:11: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
>      fread (&value, sizeof(value), 1, file);
>
> Does this (obviously not always reproducible) problem ring a bell?

It seems to be a combination of compiler + headers + flags that could
lead to the nondeterminism. Anyways, the compiler is right: the return
value of fread should be checked. I suggest opening an issue upstream
and deactivate -Werror until it is fixed.

Best,
Fabian



More information about the Debian-med-packaging mailing list