Skip to content

warning: unknown attribute '__nonnull__' #39

@andrewrk

Description

@andrewrk
/nix/store/41pf3md9zgpda9kwh6rzn5kaddf7i0lp-glibc-2.40-66-dev/include/stdlib.h:1146:14: warning: unknown attribute '__nonnull__' ignored [-Wunknown-attributes]
     __THROW __nonnull ((1));
             ^
/nix/store/41pf3md9zgpda9kwh6rzn5kaddf7i0lp-glibc-2.40-66-dev/include/sys/cdefs.h:561:28: note: expanded from here
# define __nonnull(params) __attribute_nonnull__ (params)
                           ^
/nix/store/41pf3md9zgpda9kwh6rzn5kaddf7i0lp-glibc-2.40-66-dev/include/sys/cdefs.h:555:57: note: expanded from here
#  define __attribute_nonnull__(params) __attribute__ ((__nonnull__ params))
                                                        ^

Looks like this attribute can be used to help choose better pointer types.

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