🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42236

suppressing warning about using import instead of include

#42236
From: dan hitt
Date: Wed, 03 Jan 1996 00:00
14 lines
1069 bytes
When i use gcc (2.6.3) to compile an Objective-C source file i
get a warning explaining how it may be a superior programming
practice to use the ``#include'' directive instead of the
``#import'' directive.  (The warning also includes a well
known method for protecting against double inclusions when
the ``#include'' directive is used.)

Now that i have read the warning, can i pass some flag to the
compiler to suppress this warning?  (And if so, what is the flag?)

Thanks for any pointers anyone provides.

dan
acoustic@c2.org
Technical Details
Message-ID: <4cdvoo$a9o@eternity.c2.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,516c956b6bf05dba,start
X-Google-Attributes: gid11318c,public
From: acoustic@infinity.c2.org (dan hitt)
Subject: suppressing warning about using import instead of include
Date: 1996/01/03
Message-ID: <4cdvoo$a9o@eternity.c2.org>
X-Deja-AN: 133862865
organization: Community ConneXion: http://www.c2.org/ 510-658-6376
keywords: objective-C, import, include, warning
newsgroups: gnu.gcc.help
summary: Would like to suppress the import-include warning