Hi again,

On Mon, Dec 04, 2017 at 05:59:28PM +0100, Andreas Tille wrote:
> some problems with gatb[1].  With the new upstream version, I get:
> 
> cc1plus: error: -Wformat-security ignored without -Wformat 
> [-Werror=format-security]
> cc1plus: error: -Wformat-security ignored without -Wformat 
> [-Werror=format-security]

I received another (unrelated) patch by Gert Wollny who told me that he
can not reproduce the issue above.  I refreshed by cowbuilder chroot but
the issue remains:


...
cd /build/gatb-core-1.4.0+dfsg/obj-x86_64-linux-gnu/src && /usr/bin/c++   
-I/usr/include/hdf5/serial 
-I/build/gatb-core-1.4.0+dfsg/obj-x86_64-linux-gnu/include 
-I/build/gatb-core-1.4.0+dfsg/obj-x86_64-linux-gnu/include/None 
-I/build/gatb-core-1.4.0+dfsg/gatb-core/src 
-I/build/gatb-core-1.4.0+dfsg/gatb-core/thirdparty  -g -O2 
-fdebug-prefix-map=/build/gatb-core-1.4.0+dfsg=. -fstack-protector-strong 
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -msse2 
-msse4.2 -mpopcnt   -std=c++11 -O3 -DNDEBUG -Wall -Wno-unused-function 
-Wno-format -Wno-unknown-pragmas -Wno-invalid-offsetof -o 
CMakeFiles/gatbcore-static.dir/gatb/bank/impl/Bank.cpp.o -c 
/build/gatb-core-1.4.0+dfsg/gatb-core/src/gatb/bank/impl/Bank.cpp
cc1plus: error: -Wformat-security ignored without -Wformat 
[-Werror=format-security]
cc1plus: error: -Wformat-security ignored without -Wformat 
[-Werror=format-security]
cc1plus: error: -Wformat-security ignored without -Wformat 
[-Werror=format-security]
cc1plus: error: -Wformat-security ignored without -Wformat 
[-Werror=format-security]
/build/gatb-core-1.4.0+dfsg/gatb-core/src/gatb/bank/impl/BankBinary.cpp: In 
function 'bool gatb::core::bank::impl::checkMagic(FILE*)':
/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);
     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/gatb-core-1.4.0+dfsg/gatb-core/src/gatb/bank/impl/BankBinary.cpp: In 
member function 'virtual void 
gatb::core::bank::impl::BankBinary::Iterator::next()':
/build/gatb-core-1.4.0+dfsg/gatb-core/src/gatb/bank/impl/BankBinary.cpp:453:15: 
warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', 
declared with attribute warn_unused_result [-Wunused-result]
         fread (_bufferData->getBuffer(), sizeof( char),block_size, 
binary_read_file); // read a block of reads into the buffer
         
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
src/CMakeFiles/gatbcore-static.dir/build.make:113: recipe for target 
'src/CMakeFiles/gatbcore-static.dir/gatb/bank/impl/BankBinary.cpp.o' failed
make[3]: *** 
[src/CMakeFiles/gatbcore-static.dir/gatb/bank/impl/BankBinary.cpp.o] Error 1


Does this (obviously not always reproducible) problem ring a bell?

Kind regards

       Andreas.
 
> [1] https://anonscm.debian.org/git/debian-med/gatb-core.git

-- 
http://fam-tille.de

Reply via email to