Commit f3172872 authored by aroben@apple.com's avatar aroben@apple.com

MSVC build fix

        * kjs/testkjs.cpp:
        (functionQuit): Don't add a return statement after exit(0) for MSVC.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b6b1ea20
2008-02-25 Adam Roben <aroben@apple.com>
MSVC build fix
* kjs/testkjs.cpp:
(functionQuit): Don't add a return statement after exit(0) for MSVC.
2008-02-24 Sam Weinig <sam@webkit.org>
Reviewed by Mark Rowe.
......
......@@ -217,7 +217,10 @@ JSValue* functionReadline(ExecState*, JSObject*, const List&)
JSValue* functionQuit(ExecState*, JSObject*, const List&)
{
exit(0);
#if !COMPILER(MSVC)
// MSVC knows that exit(0) never returns, so it flags this return statement as unreachable.
return jsUndefined();
#endif
}
// Use SEH for Release builds only to get rid of the crash report dialog
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment