Date: Sat, 12 Aug 2000 02:02:21 +0100 From: Ben Smithurst <ben@FreeBSD.org> To: Isaac Waldron <waldroni@lr.net> Cc: freebsd-questions@freebsd.org Subject: Re: C++ comments in kernel module Message-ID: <20000812020221.P48327@strontium.scientia.demon.co.uk> In-Reply-To: <200008111501.LAA00387@waldron.house> References: <200008111501.LAA00387@waldron.house>
next in thread | previous in thread | raw e-mail | index | archive | help
Isaac Waldron wrote: > I am working on a kernel module for the plex86 vm project, and have run into a > small issue with some of the non-OS specific code. This code has C++ style > '//' comments in it, which are disallowed by gcc when the -ansi flag is used. > Does anyone know of a way to re-enable these comments, and if not, is there > any harm in disabling the -ansi flag when compiling a kernel module? Just don't use those comments, use real C /* comments */ instead. I think technically the // comments are legal ANSI C now, but haven't been for long and I guess the compilers haven't caught up yet. But no, I don't think removing -ansi will hurt. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000812020221.P48327>