Browse Source

Vet demo.odin

gingerBill 6 years ago
parent
commit
aa156e4bfc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      examples/demo/demo.odin

+ 3 - 1
examples/demo/demo.odin

@@ -756,6 +756,8 @@ complete_switch :: proc() {
 		case D: fmt.println("D");
 		case D: fmt.println("D");
 		case:   fmt.println("?");
 		case:   fmt.println("?");
 		}
 		}
+
+		_ = b;
 	}
 	}
 	{ // union
 	{ // union
 		Foo :: union {int, bool};
 		Foo :: union {int, bool};
@@ -774,6 +776,7 @@ cstring_example :: proc() {
 	Y :: string(X);
 	Y :: string(X);
 
 
 	w := W;
 	w := W;
+	_ = w;
 	x: cstring = X;
 	x: cstring = X;
 	y: string = Y;
 	y: string = Y;
 	z := string(x);
 	z := string(x);
@@ -815,7 +818,6 @@ bit_set_type :: proc() {
 
 
 		d: Days;
 		d: Days;
 		d = {Sunday, Monday};
 		d = {Sunday, Monday};
-		x := Tuesday;
 		e := d | WEEKEND;
 		e := d | WEEKEND;
 		e |= {Monday};
 		e |= {Monday};
 		fmt.println(d, e);
 		fmt.println(d, e);