Skip to content

LGTM.com - false positive - cpp/ambiguously-signed-bit-field with glib #7491

@MrAnno

Description

@MrAnno

GLib's gboolean is just a typedef to gint, but it is meant to represent a simple true/false value.

An exception for WIndows BOOLs has already been added to the mentioned query.
I was wondering if you would be interested in adding one for GLib (a frequently used C library) too.

For example:
https://github.com/syslog-ng/syslog-ng/blob/c533d1d1983b9f6840e96353f1588b2d1596613b/.lgtm/cpp-queries/ambiguously-signed-bit-field.ql#L31

URL to the alert on the project page on LGTM.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    C++acknowledgedGitHub staff acknowledges this issuefalse-positivenot securityThis issue does not relate to a security query

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions