Skip to content

warning: implicit conversion of NULL constant to 'CFStringEncoding' #113

@ryandesign

Description

@ryandesign

Compiling enigma (latest git source as of yesterday) on macOS 12 produces this warning:

ecl_sys_localename.cc:749:51: warning: implicit conversion of NULL constant to 'CFStringEncoding' (aka 'unsigned int') [-Wnull-conversion]
    const char *tmp = CFStringGetCStringPtr(name, NULL);
                      ~~~~~~~~~~~~~~~~~~~~~       ^~~~
                                                  0
1 warning generated.

Instead of NULL or 0 you should presumably be using one of the constants documented by Apple.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions