From owner-freebsd-hackers@FreeBSD.ORG Thu May 1 07:51:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42E0A37B401 for ; Thu, 1 May 2003 07:51:44 -0700 (PDT) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3F8B43F3F for ; Thu, 1 May 2003 07:51:43 -0700 (PDT) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id C07155308; Thu, 1 May 2003 16:51:41 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: hackers@freebsd.org From: Dag-Erling Smorgrav Date: Thu, 01 May 2003 16:51:40 +0200 Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: incorrect enum warning? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 14:51:44 -0000 Why does the following code in OpenPAM headers: /* * XSSO 5.4 */ enum { PAM_SILENT = 0x80000000, PAM_DISALLOW_NULL_AUTHTOK = 0x1, PAM_ESTABLISH_CRED = 0x1, PAM_DELETE_CRED = 0x2, PAM_REINITIALIZE_CRED = 0x4, PAM_REFRESH_CRED = 0x8, PAM_PRELIM_CHECK = 0x1, PAM_UPDATE_AUTHTOK = 0x2, PAM_CHANGE_EXPIRED_AUTHTOK = 0x4 }; cause the following warning when compiled with CSTD=c99: /usr/src/contrib/openpam/include/security/pam_constants.h:100: warning: ISO C restricts enumerator values to range of `int' when 0x80000000 is clearly within the range of 'int' on all platforms we support? DES -- Dag-Erling Smorgrav - des@ofug.org