Re: Re: [ntdev] kcalloc equivalent

“It seems wrong that the compiler should complain when a callee enforces a
more rigorous contract than a caller demands”

I don’t even know how to comment on that statement.

Sent from TRS-80 Model I

On Fri, Apr 24, 2015 at 10:47 PM, Jamey Kirby wrote:

> for(;:wink: is the proper way. while(TRUE) or while(1) is convoluted. What is
> TRUE? What is 1? I consider it sloppy programming. I would rather see a
> goto than while (TRUE).
>
> I think most projects I have worked on, developers use /w3. It drives me
> crazy. I have seen countless project where code ships with hundreds of
> warnings.
>
> BTW: I prefer the word recalcitrant to cantankerous :slight_smile:
>
>
>
>
>
>
> On Fri, Apr 24, 2015 at 8:55 PM, Marion Bond
> wrote:
>
>> IMHO it is much easier to simply define the non-obvious MACRO
>> while(true) to eliminate the warnings; but then I am irrationally
>> prejudiced against for loops (except the .NET for each next kind)
>>
>> The more annoying problem is casting function pointers because the
>> signatures differ by const qualifiers. Generic function pointer types
>> don’t include them, but often the actual function definition does and that
>> causes a type mismatch. It seems wrong that the compiler should complain
>> when a callee enforces a more rigorous contract than a caller demands
>>
>> Sent from Surface Pro
>>
>> From: Maxim S. Shatskih
>> Sent: ‎Friday‎, ‎April‎ ‎24‎, ‎2015 ‎6‎:‎25‎ ‎PM
>> To: Windows System Software Devs Interest List
>>
>> > I was pleased to see that the WDK defaults /W4. Many devs simply find
>> /W4 too cantankerous to
>> >deal with.
>>
>> I think /W4 /WX is a must beyound doubt, even if some stuff from it
>> should be suppressed by #pragmas.
>>
>> The Greek-like word of “cantankerous”, looking like a Bysantine emperor
>> family name, surely enriches my English knowledge :slight_smile:
>>
>> >Unreferenced parameters,
>>
>> So what? C has no C++ elegant way of dealing with them, but it has
>> UNREFERENCED_PARAMETER() macro.
>>
>> >and invariant expressions in a “while” statement
>>
>> Use for(;:wink: instead.
>>
>> –
>> Maxim S. Shatskih
>> Microsoft MVP on File System And Storage
>> xxxxx@storagecraft.com
>> http://www.storagecraft.com
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>>
>> OSR is HIRING!! See http://www.osr.com/careers
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>>
>> OSR is HIRING!! See http://www.osr.com/careers
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
>
>
> –
> Jamey Kirby
> Disrupting the establishment since 1964
>
> This is a personal email account and as such, emails are not subject to
> archiving. Nothing else really matters.

>


Jamey Kirby
Disrupting the establishment since 1964

This is a personal email account and as such, emails are not subject to
archiving. Nothing else really matters.