THRIFT-423. -strict should turn omitted field ids into compile error

Issue name says it all.



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761736 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/main.cc b/compiler/cpp/src/main.cc
index 8a0bd68..7a5d2d4 100644
--- a/compiler/cpp/src/main.cc
+++ b/compiler/cpp/src/main.cc
@@ -121,6 +121,11 @@
 int g_debug = 0;
 
 /**
+ * Strictness level
+ */
+int g_strict = 127;
+
+/**
  * Warning level
  */
 int g_warn = 1;
@@ -928,6 +933,7 @@
       } else if (strcmp(arg, "-nowarn") == 0) {
         g_warn = 0;
       } else if (strcmp(arg, "-strict") == 0) {
+        g_strict = 255;
         g_warn = 2;
       } else if (strcmp(arg, "-v") == 0 || strcmp(arg, "-verbose") == 0 ) {
         g_verbose = 1;