Tips from the compiler

Don nospam at nospam.com
Tue Oct 19 00:31:26 PDT 2010


Rainer Deyke wrote:
> On 10/18/2010 14:53, Don wrote:
>> The problem is, once you have an "optional warning" in a compiler, they
>> are NOT optional. All standard or pseudo-standard libraries MUST comply
>> with them.
> 
> Libraries are assumed to be fully debugged, therefore they should always
> be compiled with all warnings turned off.  Therefore libraries don't
> have to comply with ANY warnings.  (And if your compiler doesn't allow
> you to specify which files are library files, then the problem is with
> the compiler.)
> 

It's not obvious to me how that can be done in the presence of 
templates. Although it's easy to distinguish between library and 
non-library *files*, it's not at all easy to distinguish between library 
and non-library *code*.


More information about the Digitalmars-d mailing list