Skip to content

Commit 1a99b39

Browse files
committed
One function was deleted, now it's back.
1 parent 8d08a0d commit 1a99b39

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/checkio.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,12 @@ void CheckIOImpl::seekOnAppendedFileError(const Token *tok)
438438
"seekOnAppendedFile", "Repositioning operation performed on a file opened in append mode has no effect.", CWE398, Certainty::normal);
439439
}
440440

441+
void CheckIOImpl::ftellFileError(const Token *tok)
442+
{
443+
reportError(tok, Severity::portability,
444+
"ftellTextModeFile", "ftell() result is unspecified when file is opened in mode \"t\"", CWE474, Certainty::normal);
445+
}
446+
441447
void CheckIOImpl::incompatibleFileOpenError(const Token *tok, const std::string &filename)
442448
{
443449
reportError(tok, Severity::warning,

0 commit comments

Comments
 (0)