Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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