Changes by: Jason Hickey (jyh at cs.caltech.edu)
Date: 2005-08-31 22:18:47 -0700 (Wed, 31 Aug 2005)
Revision: 1451
Log message:

      Reversed the declaration warning, more like Aleksey wanted it.
      The is just short of what Aleksey suggested, but I think we want
      to keep it like this.  This generates a ton of messages, and I don't
      think we want even more annotations.
      
      Here is the rule.  You get a warning if:
         - you are defining a variable, say
               X = ...
         - and X is not already declared/defined in the current scope.
      
      If you specify the variable class explicitly, the warning goes away.
      
      The following case is fine:
      
          open build/C
          CFLAGS = -g
      
      The following is a warning (and the new definition is different from
      the one in build/C).
      
          # Forgot to open build/C
          CFLAGS = -g
      
      The following is also fine.  The public.CFLAGS refers to the current
      file scope, so public.CFLAGS is different from C.CFLAGS.
      
          open build/C
          # No effect on C.CFLAGS
          public.CFLAGS = hello world
          # Explicitly specify C.CFLAGS
          C.CFLAGS += -g
      

Changes  Path
+60 -55 omake-branches/omake_0_9_7_pre5/OMakefile
+5 -5 omake-branches/omake_0_9_7_pre5/contrib/gtk/OMakefile
+2 -2 omake-branches/omake_0_9_7_pre5/contrib/gtk/test.om
+156 -149 omake-branches/omake_0_9_7_pre5/doc/OMakefile
+2 -2 omake-branches/omake_0_9_7_pre5/lib/boot/Default
+3 -3 omake-branches/omake_0_9_7_pre5/lib/build/LaTeX.om
+1 -1 omake-branches/omake_0_9_7_pre5/lib/parse/C/Dll.om
+1 -1 omake-branches/omake_0_9_7_pre5/lib/parse/C/Lex.om
+8 -8 omake-branches/omake_0_9_7_pre5/lib/parse/C/Parse.om
+20 -23 omake-branches/omake_0_9_7_pre5/mk/defaults
+4 -10 omake-branches/omake_0_9_7_pre5/mk/make_config
+30 -30 omake-branches/omake_0_9_7_pre5/src/Makefile
+30 -30 omake-branches/omake_0_9_7_pre5/src/Makefile.nt
+1 -1 omake-branches/omake_0_9_7_pre5/src/OMakefile
+1 -1 omake-branches/omake_0_9_7_pre5/src/ast/OMakefile
+1 -1 omake-branches/omake_0_9_7_pre5/src/build/OMakefile
+1 -1 omake-branches/omake_0_9_7_pre5/src/clib/OMakefile
+12 -11 omake-branches/omake_0_9_7_pre5/src/env/OMakefile
+15 -5 omake-branches/omake_0_9_7_pre5/src/env/omake_env.ml
+5 -1 omake-branches/omake_0_9_7_pre5/src/env/omake_ir_ast.ml
+1 -1 omake-branches/omake_0_9_7_pre5/src/eval/OMakefile
+1 -1 omake-branches/omake_0_9_7_pre5/src/exec/OMakefile
+1 -1 omake-branches/omake_0_9_7_pre5/src/ir/OMakefile
+46 -45 omake-branches/omake_0_9_7_pre5/src/libmojave/OMakefile
+56 -54 omake-branches/omake_0_9_7_pre5/src/magic/OMakefile
+1 -1 omake-branches/omake_0_9_7_pre5/src/main/OMakefile
+10 -10 omake-branches/omake_0_9_7_pre5/src/shell/OMakefile
+19 -18 omake-branches/omake_0_9_7_pre5/src/util/OMakefile