Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1130)

Side by Side Diff: tools/gn/gn_main.cc

Issue 203043002: Fix "unreachable code" warnings (MSVC warning 4702), misc. edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "tools/gn/commands.h" 8 #include "tools/gn/commands.h"
9 #include "tools/gn/err.h" 9 #include "tools/gn/err.h"
10 #include "tools/gn/location.h" 10 #include "tools/gn/location.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 if (found_command != command_map.end()) { 71 if (found_command != command_map.end()) {
72 retval = found_command->second.runner(args); 72 retval = found_command->second.runner(args);
73 } else { 73 } else {
74 Err(Location(), 74 Err(Location(),
75 "Command \"" + command + "\" unknown.").PrintToStdout(); 75 "Command \"" + command + "\" unknown.").PrintToStdout();
76 commands::RunHelp(std::vector<std::string>()); 76 commands::RunHelp(std::vector<std::string>());
77 retval = 1; 77 retval = 1;
78 } 78 }
79 79
80 exit(retval); // Don't free memory, it can be really slow! 80 exit(retval); // Don't free memory, it can be really slow!
81 return retval;
82 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698