Skip to content

Commit

Permalink
Remove warnings from amalgamation header
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Aug 19, 2022
1 parent 283fd9e commit fcbf64b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libc/mem/mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void *valloc(size_t) attributeallocsize((1)) vallocesque;
void *pvalloc(size_t) vallocesque;
char *strdup(const char *) paramsnonnull() mallocesque;
char *strndup(const char *, size_t) paramsnonnull() mallocesque;
void *aligned_alloc(size_t, size_t) attributeallocsize((1))
void *aligned_alloc(size_t, size_t) attributeallocalign((1))
attributeallocsize((2)) returnspointerwithnoaliases libcesque dontdiscard;
int posix_memalign(void **, size_t, size_t);
bool __grow(void *, size_t *, size_t, size_t) paramsnonnull((1, 2)) libcesque;
Expand Down
4 changes: 0 additions & 4 deletions libc/sysv/consts/_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,4 @@
#define _POSIX2_LINE_MAX 2048
#define _POSIX2_RE_DUP_MAX 255

#define _XOPEN_IOV_MAX 16
#define _XOPEN_NAME_MAX 255
#define _XOPEN_PATH_MAX 1024

#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS__POSIX_H_ */
5 changes: 2 additions & 3 deletions libc/sysv/consts/xopen.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_XOPEN_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_XOPEN_H_

#define _XOPEN_IOV_MAX 0x10
#define _XOPEN_IOV_MAX 16
#define _XOPEN_ENH_I18N 1
#define _XOPEN_UNIX 1
#define _XOPEN_NAME_MAX 63
#define _XOPEN_PATH_MAX 255
#define _XOPEN_VERSION 700
#define _XOPEN_PATH_MAX 1024
#define _XOPEN_SOURCE 700

#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_XOPEN_H_ */
2 changes: 2 additions & 0 deletions test/libc/release/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ o/$(MODE)/test/libc/release/cosmopolitan.zip: \
o/$(MODE)/ape/ape.lds \
o/$(MODE)/libc/crt/crt.o \
o/$(MODE)/ape/ape.o \
o/$(MODE)/ape/ape-copy-self.o \
o/$(MODE)/ape/ape-no-modify-self.o \
o/$(MODE)/cosmopolitan.a
mkdir -p $(@D)
Expand All @@ -15,6 +16,7 @@ o/$(MODE)/test/libc/release/cosmopolitan.zip: \
o/$(MODE)/ape/ape.lds \
o/$(MODE)/libc/crt/crt.o \
o/$(MODE)/ape/ape.o \
o/$(MODE)/ape/ape-copy-self.o \
o/$(MODE)/ape/ape-no-modify-self.o \
o/$(MODE)/cosmopolitan.a

Expand Down

0 comments on commit fcbf64b

Please sign in to comment.