mirror of
https://git.wuffs.org/MWCC
synced 2025-12-14 15:46:16 +00:00
get it to compile with clang
This commit is contained in:
@@ -7,7 +7,7 @@ static OSOpenedDir wilddirref;
|
||||
static OSSpec wildmatch;
|
||||
char STSbuf[256];
|
||||
|
||||
inline char dummyfunc(int ch) {
|
||||
CW_INLINE char dummyfunc(int ch) {
|
||||
return ch;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,8 +15,7 @@ void OS_AddFileTypeMappingList(OSFileTypeMappings **list, const OSFileTypeMappin
|
||||
scan = &(*scan)->next;
|
||||
|
||||
*scan = malloc(sizeof(OSFileTypeMappings));
|
||||
#line 40
|
||||
OPTION_ASSERT(*scan != NULL);
|
||||
OS_ASSERT(40, *scan != NULL);
|
||||
(*scan)->mappingList = entry;
|
||||
(*scan)->next = 0;
|
||||
}
|
||||
|
||||
@@ -94,8 +94,7 @@ static DirNode *FindDirMapEntry(unsigned int dirID) {
|
||||
|
||||
row = dirID >> 8;
|
||||
col = dirID & 0xFF;
|
||||
#line 166
|
||||
OPTION_ASSERT(dirID != 2);
|
||||
OS_ASSERT(166, dirID != 2);
|
||||
|
||||
if (row >= dirMapRows)
|
||||
return 0;
|
||||
@@ -167,8 +166,7 @@ static int FindOrAdd(const OSPathSpec *path, unsigned int *vRefNum, unsigned int
|
||||
*vRefNum = vol->vRefNum;
|
||||
level = &vol->root;
|
||||
ptr = &pb[1];
|
||||
#line 267
|
||||
OPTION_ASSERT(*pb == OS_PATHSEP);
|
||||
OS_ASSERT(267, *pb == OS_PATHSEP);
|
||||
|
||||
while (*ptr) {
|
||||
st = ptr;
|
||||
|
||||
@@ -91,8 +91,7 @@ char *mvprintf(char *mybuf, unsigned int len, const char *format, va_list va) {
|
||||
int ret;
|
||||
char *buf;
|
||||
|
||||
#line 134
|
||||
OPTION_ASSERT(mybuf != NULL);
|
||||
OS_ASSERT(134, mybuf != NULL);
|
||||
|
||||
maxlen = len - 1;
|
||||
buf = mybuf;
|
||||
|
||||
Reference in New Issue
Block a user