]> khamidou — GitHub mirrors - electron.git/commitdiff
win: Fix building, close #2018
authorCheng Zhao <zcbenz@gmail.com>
Tue, 23 Jun 2015 02:18:43 +0000 (10:18 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 23 Jun 2015 02:18:43 +0000 (10:18 +0800)
atom/browser/api/atom_api_cookies.cc
atom/browser/api/atom_api_protocol.cc
atom/browser/api/atom_api_session.cc
common.gypi
script/upload.py

index be11df8888c5dc9a1bafc364010feaad54e136fe..27abfcc65f58dce8919cfedc919ca7d12041d5d6 100644 (file)
@@ -343,7 +343,7 @@ mate::ObjectTemplateBuilder Cookies::GetObjectTemplateBuilder(
 mate::Handle<Cookies> Cookies::Create(
     v8::Isolate* isolate,
     content::BrowserContext* browser_context) {
-  return CreateHandle(isolate, new Cookies(browser_context));
+  return mate::CreateHandle(isolate, new Cookies(browser_context));
 }
 
 }  // namespace api
index bb937905004cd7ba4b95de5c3d60caf926b310b5..0b7a5cfa7c340f8ff84b9b75bd5cf6211add2f03 100644 (file)
@@ -354,7 +354,7 @@ void Protocol::EmitEventInUI(const std::string& event,
 // static
 mate::Handle<Protocol> Protocol::Create(
     v8::Isolate* isolate, AtomBrowserContext* browser_context) {
-  return CreateHandle(isolate, new Protocol(browser_context));
+  return mate::CreateHandle(isolate, new Protocol(browser_context));
 }
 
 }  // namespace api
index 744accd7d1cd19fca96074c27300ea3f02137444..18806ebf41f3c9ced1920d6663a60048c1438a29 100644 (file)
@@ -41,7 +41,7 @@ mate::ObjectTemplateBuilder Session::GetObjectTemplateBuilder(
 mate::Handle<Session> Session::Create(
     v8::Isolate* isolate,
     content::BrowserContext* browser_context) {
-  return CreateHandle(isolate, new Session(browser_context));
+  return mate::CreateHandle(isolate, new Session(browser_context));
 }
 
 }  // namespace api
index 14b89393a534fcee951124b2bcae2de46a92c37c..8ecf77e58bf9b70e19c390f169b0519fe49fa0e3 100644 (file)
     'target_conditions': [
       ['_target_name in ["libuv", "http_parser", "openssl", "cares", "node", "zlib"]', {
         'msvs_disabled_warnings': [
-          4703,  # potentially uninitialized local pointer variable 'req' used
           4013,  # 'free' undefined; assuming extern returning int
           4018,  # signed/unsigned mismatch
           4054,  #
+          4055,  # 'type cast' : from data pointer 'void *' to function pointer
           4057,  # 'function' : 'volatile LONG *' differs in indirection to slightly different base types from 'unsigned long *'
           4189,  #
           4131,  # uses old-style declarator
           4133,  # incompatible types
           4146,  # unary minus operator applied to unsigned type, result still unsigned
+          4164,  # intrinsic function not declared
           4152,  # function/data pointer conversion in expression
           4206,  # translation unit is empty
           4204,  # non-constant aggregate initializer
@@ -58,6 +59,7 @@
           4389,  # '==' : signed/unsigned mismatch
           4505,  # unreferenced local function has been removed
           4701,  # potentially uninitialized local variable 'sizew' used
+          4703,  # potentially uninitialized local pointer variable 'req' used
           4706,  # assignment within conditional expression
           4804,  # unsafe use of type 'bool' in operation
           4996,  # this function or variable may be unsafe.
index 281300554ef35d180554b7a79e6e136c0e8b80a4..931eb92f7e062d84a5d36b878e71c8bb1db22cb2 100755 (executable)
@@ -85,10 +85,6 @@ def main():
                       os.path.join(DIST_DIR, MKSNAPSHOT_NAME))
 
   if PLATFORM == 'win32':
-    # Upload PDBs to Windows symbol server.
-    execute([sys.executable,
-             os.path.join(SOURCE_ROOT, 'script', 'upload-windows-pdb.py')])
-
     # Upload node headers.
     execute([sys.executable,
              os.path.join(SOURCE_ROOT, 'script', 'upload-node-headers.py'),