• SBBS compile error (3/5)

    From macexplorer057@gmail.com@1:229/2 to All on Sunday, March 04, 2018 19:57:18
    [continued from previous message]

    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsstr.h:570:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(offsetof(JSShortString, mDummy) == sizeof(JSString));
    ^~~~~~~~~~~~~~~~
    jsutil.h:120:43: warning: typedef ‘js_static_assert45’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsstr.h:571:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(offsetof(JSString, inlineStorage) +
    ^~~~~~~~~~~~~~~~
    jsscript.h: In member function ‘void js::UpvarCookie::checkInvariants()’: jsutil.h:120:43: warning: typedef ‘js_static_assert47’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsscript.h:83:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(sizeof(UpvarCookie) == sizeof(uint32));
    ^~~~~~~~~~~~~~~~
    jsutil.h:120:43: warning: typedef ‘js_static_assert48’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsscript.h:84:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(UPVAR_LEVEL_LIMIT < FREE_LEVEL);
    ^~~~~~~~~~~~~~~~
    jsfun.h: In static member function ‘static uintN JSFunction::offsetOfNativeOrScript()’:
    jsutil.h:120:43: warning: typedef ‘js_static_assert49’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsfun.h:228:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(offsetof(U, n.native) == offsetof(U, i.script));
    ^~~~~~~~~~~~~~~~
    jsutil.h:120:43: warning: typedef ‘js_static_assert50’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsfun.h:229:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(offsetof(U, n.native) == offsetof(U, nativeOrScript));
    ^~~~~~~~~~~~~~~~
    jsgc.h: In function ‘size_t js::gc::GetFinalizableTraceKind(size_t)’: jsutil.h:120:43: warning: typedef ‘js_static_assert58’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsgc.h:514:5: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(JSExternalString::TYPE_LIMIT == 8);
    ^~~~~~~~~~~~~~~~
    jsgc.h: In function ‘intN js::gc::GetExternalStringGCType(JSExternalString*)’:
    jsutil.h:120:43: warning: typedef ‘js_static_assert59’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsgc.h:550:5: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(FINALIZE_STRING + 1 == FINALIZE_EXTERNAL_STRING);
    ^~~~~~~~~~~~~~~~
    jsinterp.h: In member function ‘void JSStackFrame::staticAsserts()’: jsutil.h:120:43: warning: typedef ‘js_static_assert61’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsinterp.h:778:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(offsetof(JSStackFrame, rval_) % sizeof(js::Value) == 0);
    ^~~~~~~~~~~~~~~~
    jsutil.h:120:43: warning: typedef ‘js_static_assert62’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsinterp.h:779:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(sizeof(JSStackFrame) % sizeof(js::Value) == 0);
    ^~~~~~~~~~~~~~~~
    jsapi.cpp
    c++ -o jsapi.o -c -fvisibility=hidden -DOSTYPE=\"Linux4.9\" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS -I. -I. -I./dist/include -I./dist/include/nsprpub -I/usr/include/nspr -I. -I./assembler -I./yarr -fPIC -fno-rtti -fno-exceptions -Wall
    -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -pthread -pipe -DNDEBUG -DTRIMMED -O3 -
    DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsapi.pp jsapi.cpp
    In file included from jsapi.cpp:52:0:
    jsutil.h: In function ‘T* js_array_new(size_t)’:
    jsutil.h:302:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    if (!memory)
    ^~
    jsutil.h:304:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
    *(size_t *)memory = n;
    ^
    In file included from jsapi.cpp:56:0:
    jsapi.h: At global scope:
    jsapi.h:1381:39: warning: ignoring attributes on template argument ‘jsval {aka long unsigned int}’ [-Wignored-attributes]
    template<> class AnchorPermitted<jsval> { };
    ^
    In file included from jsapi.cpp:52:0:
    jsvalue.h: In member function ‘void js::Value::staticAssertions()’: jsutil.h:120:43: warning: typedef ‘js_static_assert6’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsvalue.h:737:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(sizeof(JSValueType) == 1);
    ^~~~~~~~~~~~~~~~
    jsutil.h:120:43: warning: typedef ‘js_static_assert7’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsvalue.h:738:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(sizeof(JSValueTag) == 4);
    ^~~~~~~~~~~~~~~~
    jsutil.h:120:43: warning: typedef ‘js_static_assert8’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsvalue.h:739:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(sizeof(JSBool) == 4);
    ^~~~~~~~~~~~~~~~
    jsutil.h:120:43: warning: typedef ‘js_static_assert9’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsvalue.h:740:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(sizeof(JSWhyMagic) <= 4);
    ^~~~~~~~~~~~~~~~
    jsutil.h:120:43: warning: typedef ‘js_static_assert10’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsvalue.h:741:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(sizeof(jsval) == 8);
    ^~~~~~~~~~~~~~~~
    jsstr.h: In static member function ‘static void JSString::staticAsserts()’: jsutil.h:120:43: warning: typedef ‘js_static_assert39’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsstr.h:459:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(((JSString::MAX_LENGTH << JSString::LENGTH_SHIFT) >>
    ^~~~~~~~~~~~~~~~
    jsstr.h: In static member function ‘static void JSShortString::staticAsserts()’:
    jsutil.h:120:43: warning: typedef ‘js_static_assert43’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsstr.h:568:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(offsetof(JSString, inlineStorage) ==
    ^~~~~~~~~~~~~~~~
    jsutil.h:120:43: warning: typedef ‘js_static_assert44’ locally defined but not used [-Wunused-local-typedefs]
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^
    jsutil.h:117:41: note: in definition of macro ‘JS_STATIC_ASSERT_GLUE1’
    #define JS_STATIC_ASSERT_GLUE1(x,y) x##y
    ^
    jsutil.h:120:21: note: in expansion of macro ‘JS_STATIC_ASSERT_GLUE’
    typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
    ^~~~~~~~~~~~~~~~~~~~~
    jsstr.h:570:9: note: in expansion of macro ‘JS_STATIC_ASSERT’
    JS_STATIC_ASSERT(offsetof(JSShortString, mDummy) == sizeof(JSString));
    ^~~~~~~~~~~~~~~~

    [continued in next message]

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)