mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 671029 (followup): Remove unused size parameter and uninitialized var warning (rs=jwalden)
This commit is contained in:
parent
cbfbadfaa5
commit
18dc5aa5c4
@ -398,7 +398,7 @@ SetContextOptions(JSContext *cx)
|
|||||||
* is meaningless for UTF-8) but causes a syntax error unless we skip it.
|
* is meaningless for UTF-8) but causes a syntax error unless we skip it.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
SkipUTF8BOM(FILE* file, size_t size)
|
SkipUTF8BOM(FILE* file)
|
||||||
{
|
{
|
||||||
if (!js_CStringsAreUTF8)
|
if (!js_CStringsAreUTF8)
|
||||||
return;
|
return;
|
||||||
@ -452,7 +452,7 @@ Process(JSContext *cx, JSObject *obj, char *filename, JSBool forceTTY)
|
|||||||
|
|
||||||
if (!forceTTY && !isatty(fileno(file)))
|
if (!forceTTY && !isatty(fileno(file)))
|
||||||
{
|
{
|
||||||
SkipUTF8BOM(file, size);
|
SkipUTF8BOM(file);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* It's not interactive - just execute it.
|
* It's not interactive - just execute it.
|
||||||
|
Loading…
Reference in New Issue
Block a user