[webkit-dev] Patch for compilation error while building with gcc <
4.x compilers on latest nightlies
Darin Adler
darin at apple.com
Mon Apr 14 09:15:47 PDT 2008
On Apr 14, 2008, at 7:07 AM, Srinivas Rao M Hamse wrote:
> --- a/WebKit-r31848/JavaScriptCore/kjs/nodes.h 2008-04-12
> 04:28:00.000000000 +0530
> +++ b/WebKit-r31848/JavaScriptCore/kjs/nodes.h 2008-04-14
> 19:04:26.000000000 +0530
> @@ -207,7 +207,9 @@
> // Used to optimize those nodes that do extra work when
> returning a result, even if the result has no semantic relevance
> virtual void optimizeForUnnecessaryResult() { }
>
> +#if __GNUC__ > 4
> protected:
> +#endif
> typedef enum { EvalOperator, FunctionCall } CallerType;
> template <CallerType, bool> inline JSValue*
> resolveAndCall(ExecState*, const Identifier&, ArgumentsNode*, size_t
> = 0);
> };
Patches for review should go in bugs.webkit.org, but I think it's
worth mentioning a couple problems I see immediately.
This incorrectly removes the "protected" for non-GCC compilers and in
fact may not even compile there because __GNUC__ is not defined and
there's no check of it. And the check here says "> 4", which means the
protected is included only for GCC 5 and newer.
-- Darin
More information about the webkit-dev
mailing list