aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Kristina Chodorow <kchodorow@google.com>2016-01-11 18:23:56 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-01-11 20:10:00 +0000
commit37265a87c7aa9743a2b20069be85d03529b18534 (patch)
tree47659b312ac1fd3d4add317ae727ee52631e819c /src
parent8c40daa91818926460e9c917371bec74fd80c339 (diff)
Fix compile warning for struct/class mismatch
./compile.sh is giving: $ ./compile.sh build bazel-bin/src/bazel 🍃 Building Bazel with Bazel. INFO: Found 1 target... INFO: From Compiling src/main/cpp/blaze.cc: In file included from src/main/cpp/blaze.cc:58: ./src/main/cpp/blaze_globals.h:42:1: warning: 'GlobalVariables' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct GlobalVariables { ^ ./src/main/cpp/blaze_abrupt_exit.h:23:1: note: did you mean struct here? class GlobalVariables; ^~~~~ struct 1 warning generated. -- MOS_MIGRATED_REVID=111863702
Diffstat (limited to 'src')
-rw-r--r--src/main/cpp/blaze_abrupt_exit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/cpp/blaze_abrupt_exit.h b/src/main/cpp/blaze_abrupt_exit.h
index 15b9fed641..df1422f9b2 100644
--- a/src/main/cpp/blaze_abrupt_exit.h
+++ b/src/main/cpp/blaze_abrupt_exit.h
@@ -20,7 +20,7 @@
namespace blaze {
-class GlobalVariables;
+struct GlobalVariables;
// Returns the exit code to use for when the Blaze server exits abruptly.
int GetExitCodeForAbruptExit(const GlobalVariables& globals);