Bug #5849
Build failure on 88f6281 arch - 'fwrite', declared with attribute warn_unused_result [-Werror=unused-result]
Status:
New
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2020-01-31
Due date:
% Done:
0%
Estimated time:
Found in version:
4.3~221c29b dating from 20191128
Affected Versions:
Description
Getting the following build error while cross-compiling on 88f6281 arch with latest 4.3 git commit (probably started long ago but just noticed it).
Compilation done through spksrc project toolstack (https://github.com/SynoCommunity/spksrc).
CC src/main.o CC src/tvhlog.o CC src/imagecache.o src/imagecache.c: In function 'imagecache_new_contents': src/imagecache.c:271:9: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result [-Werror=unused-result] src/imagecache.c: At top level: cc1: error: unrecognized command line option "-Wno-stringop-overflow" [-Werror] cc1: error: unrecognized command line option "-Wno-stringop-truncation" [-Werror] cc1: all warnings being treated as errors make[3]: *** [Makefile:717: /home/th0ma7/git-ffmpeg-evansport-2/spksrc/spk/tvheadend/work-88f6281-6.1/tvheadend-git221c29b40b1e53ae09a69d9458442dd4fea665f5/build.linux/src/imagecache.o] Error 1 make[3]: Leaving directory '/home/th0ma7/git-ffmpeg-evansport-2/spksrc/spk/tvheadend/work-88f6281-6.1/tvheadend-git221c29b40b1e53ae09a69d9458442dd4fea665f5' make[2]: *** [../../mk/spksrc.compile.mk:36: compile_target] Error 2 make[2]: Leaving directory '/home/th0ma7/git-ffmpeg-evansport-2/spksrc/cross/tvheadend' make[1]: *** [../../mk/spksrc.depend.mk:44: depend_target] Error 2 make[1]: Leaving directory '/home/th0ma7/git-ffmpeg-evansport-2/spksrc/spk/tvheadend' make: [../../mk/spksrc.spk.mk:463: arch-88f6281-6.1] Error 2 (ignored)