Project

General

Profile

Actions

Bug #379

closed

Problematic Warnings (gcc 4.4.5)

Added by Jörg Riesmeier over 14 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
High
Category:
Library
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Module:
dcmqrdb & Co.
Operating System:
Linux
Compiler:
gcc

Description

reported on gcc 4.4.5 / Ubuntu 10.30 Linux during the cross platform testing phase
c++ -DHAVE_CONFIG_H -DUSE_NULL_SAFE_OFSTRING -DNDEBUG -c -I. -I. - I../include -I../../config/include -I../../dcmnet/include - I../../dcmdata/include -I../../ofstd/include -I../../oflog/include \ -O -I/usr/include/libxml2 -D_REENTRANT - D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT - D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -Wall dcmqrcnf.cc dcmqrcnf.cc: In member function ‘int DcmQueryRetrieveConfig::readConfigLines(FILE*)’: dcmqrcnf.cc:242: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result dcmqrcnf.cc: In member function ‘int DcmQueryRetrieveConfig::readHostTable(FILE*, int*)’: dcmqrcnf.cc:364: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result dcmqrcnf.cc: In member function ‘int DcmQueryRetrieveConfig::readVendorTable(FILE*, int*)’: dcmqrcnf.cc:420: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result dcmqrcnf.cc: In member function ‘int DcmQueryRetrieveConfig::readAETable(FILE*, int*)’: dcmqrcnf.cc:476: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result c++ -DHAVE_CONFIG_H -DUSE_NULL_SAFE_OFSTRING -DNDEBUG -c -I. -I. - I../include -I../../config/include -I../../dcmnet/include - I../../dcmdata/include -I../../ofstd/include -I../../oflog/include \ -O -I/usr/include/libxml2 -D_REENTRANT - D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_BSD_COMPAT - D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -Wall dcmqrdbi.cc dcmqrdbi.cc: In member function ‘OFCondition DcmQueryRetrieveIndexDatabaseHandle::instanceReviewed(int)’: dcmqrdbi.cc:3382: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result
There are also similar reports for the non-public module (e.g. 'dcmprint')


Related issues 1 (0 open1 closed)

Related to DCMTK - Patch #582: Proposed patch to remove -Wunused-result warnings (Debian/GNU Linux)Closed2013-11-28

Actions
Actions

Also available in: Atom PDF