diff --git a/mozilla/js/js2/js2.cpp b/mozilla/js/js2/js2.cpp index bdc6753a03c..68a863cd4d1 100644 --- a/mozilla/js/js2/js2.cpp +++ b/mozilla/js/js2/js2.cpp @@ -253,7 +253,7 @@ char * tests[] = { "a = { f1: 1, f2: 2}; print(a.f2++, \" should be 2\"); print(a.f2 <<= 1, \" should be 6\"); return;" }; -void testCompile() +static void testCompile() { JSScope glob; Context cx(world, &glob); diff --git a/mozilla/js2/tests/cpp/js2_shell.cpp b/mozilla/js2/tests/cpp/js2_shell.cpp index bdc6753a03c..68a863cd4d1 100644 --- a/mozilla/js2/tests/cpp/js2_shell.cpp +++ b/mozilla/js2/tests/cpp/js2_shell.cpp @@ -253,7 +253,7 @@ char * tests[] = { "a = { f1: 1, f2: 2}; print(a.f2++, \" should be 2\"); print(a.f2 <<= 1, \" should be 6\"); return;" }; -void testCompile() +static void testCompile() { JSScope glob; Context cx(world, &glob);