Bug 401298 - "Including jsapi.h generates many warnings with certain compiler configurations (e.g. gcc 3.4 -Wstrict-prototypes)" [p=wes@page.ca (Wesley W. Garland) r=mrbkap a1.9=brendan]

This commit is contained in:
reed@reedloden.com 2007-11-07 01:17:35 -08:00
Родитель c891f1738b
Коммит 76b4898f1a
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -217,7 +217,7 @@ JS_BEGIN_EXTERN_C
* comment in jstypes.h regarding safe int64 usage.
*/
extern JS_PUBLIC_API(int64)
JS_Now();
JS_Now(void);
/* Don't want to export data, so provide accessors for non-inline jsvals. */
extern JS_PUBLIC_API(jsval)
@ -1215,10 +1215,10 @@ struct JSExtendedClass {
JSObjectOp outerObject;
JSObjectOp innerObject;
JSIteratorOp iteratorObject;
void (*reserved0)();
void (*reserved1)();
void (*reserved2)();
void (*reserved3)();
void (*reserved0)(void);
void (*reserved1)(void);
void (*reserved2)(void);
void (*reserved3)(void);
};
#define JSCLASS_HAS_PRIVATE (1<<0) /* objects have private slot */
@ -2235,7 +2235,7 @@ JS_MakeStringImmutable(JSContext *cx, JSString *str);
* to get UTF-8 support.
*/
JS_PUBLIC_API(JSBool)
JS_CStringsAreUTF8();
JS_CStringsAreUTF8(void);
/*
* Character encoding support.