Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!odi!root From: root@odi.com (Operator) Newsgroups: comp.lang.c++ Subject: assigning int to enum Message-ID: <387@odi.ODI.COM> Date: 28 Jun 89 15:03:26 GMT Reply-To: Operator Organization: Object Design Inc., Burlington, MA Lines: 15 In ANSI C, it is ( I thought) legitimate to do the following: enum x { a, b, c} y; int i; y = 1; i = y; In the 2.0 release version of c++, a warning is emitted for assigments of int typed to enums. In theory, benign warnings are supposed to be suppressed unless one compiles with the +w option. Howcome this isn't suppressed?