mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00

Clang's nullability completeness checks were triggered after adding the _Nonnull specifier to one function. Removing it prevents Clang from flagging atexit() for missing a nullability specifier. include/lib/libc/stdlib.h:25:25: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness] 25 | extern int atexit(void (*func)(void)); This change ensures compliance with the C standard while preventing unexpected build errors. Change-Id: I2f881c55b36b692d22c3db22149c6402c32e8c3e Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
34 lines
899 B
C
34 lines
899 B
C
/*
|
|
* Copyright (c) 2012-2021 Roberto E. Vargas Caballero
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
/*
|
|
* Portions copyright (c) 2018-2019, Arm Limited and Contributors.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef STDLIB_H
|
|
#define STDLIB_H
|
|
|
|
#include <stddef.h>
|
|
|
|
#define EXIT_FAILURE 1
|
|
#define EXIT_SUCCESS 0
|
|
|
|
#define _ATEXIT_MAX 1
|
|
|
|
#define isspace(x) (((x) == ' ') || ((x) == '\r') || ((x) == '\n') || \
|
|
((x) == '\t') || ((x) == '\b'))
|
|
|
|
extern void abort(void);
|
|
extern int atexit(void (*func)(void));
|
|
extern void exit(int status);
|
|
|
|
long strtol(const char *nptr, char **endptr, int base);
|
|
unsigned long strtoul(const char *nptr, char **endptr, int base);
|
|
long long strtoll(const char *nptr, char **endptr, int base);
|
|
unsigned long long strtoull(const char *nptr, char **endptr, int base);
|
|
void qsort(void *, size_t, size_t,
|
|
int (*)(const void *, const void *));
|
|
#endif /* STDLIB_H */
|