From owner-freebsd-hackers Wed Aug 16 3:56:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from axl.ops.uunet.co.za (axl.ops.uunet.co.za [196.31.2.163]) by hub.freebsd.org (Postfix) with ESMTP id F3BBB37B5A9; Wed, 16 Aug 2000 03:56:19 -0700 (PDT) (envelope-from sheldonh@axl.ops.uunet.co.za) Received: from sheldonh (helo=axl.ops.uunet.co.za) by axl.ops.uunet.co.za with local-esmtp (Exim 3.16 #1) id 13P0ro-0004La-00; Wed, 16 Aug 2000 12:56:16 +0200 From: Sheldon Hearn To: freebsd-hackers@FreeBSD.org Cc: obrien@FreeBSD.org Subject: weird error messages from __COPYRIGHT macro Date: Wed, 16 Aug 2000 12:56:16 +0200 Message-ID: <16713.966423376@axl.ops.uunet.co.za> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here is a source file which looks fine to me, but for which I get unexpected assembler warnings: #include __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993\n" "The Regents of the University of California." " All rights reserved.\n"); int main(void) { exit(0); } The compiler warnings follow: /tmp/ccZ16701.s: Assembler messages: /tmp/ccZ16701.s:5: Warning: Unterminated string: Newline inserted. /tmp/ccZ16701.s:6: Warning: Unterminated string: Newline inserted. I'm led to believe that these error messages are not present on a NetBSD box. So is this broken usage of __COPYRIGHT(), or is this pre-processor or assembler breakage? And please don't whine about me about string concatenation -- it's legal in ANSI C. :-) Thanks, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message