Skip to content

Bugcheck::poco_unexpected trailing ; #5004

@lbakman

Description

@lbakman

This is extremely minor, and I only stumbled upon it because I am running static analysis on some code where I have used the poco_unexpected() macro (Re-implementation of SQLite SessionImpl for read-only).

The macro definition of poco_bugcheck ends with a ";" as the only macro within Bugcheck.h.

#define poco_unexpected() \
	Poco::Bugcheck::unexpected(__FILE__, __LINE__);

Within Poco, the use of poco_unexpected() is also terminated with a ";" giving an "Empty statement" warning in static analysis.

It was added 11 years ago, and causes no issues outside of the above static analysis warning.

Regards
Lau Bakman

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions