pragma(inline, true) errors?

Steven Schveighoffer schveiguy at yahoo.com
Fri Apr 2 18:21:59 UTC 2021


On Friday, 2 April 2021 at 17:25:43 UTC, jmh530 wrote:
> On Friday, 2 April 2021 at 17:00:35 UTC, Steven Schveighoffer 
> wrote:
>> [snip]
>>
>> I don't really care about inlining or not, but I'm forced to 
>> reckon with this, because I've taken over maintenance of a 
>> package that puts "pragma(inline, true):" at the top of a 
>> module, and therefore warnings are being spat out. So I want 
>> to ask the question, is this a bug? What is the expectation? 
>> Should we just change the description to "issue a 
>> informational warning in some cases when the function cannot 
>> be inlined"?
>> [snip]
>
> It only does warnings when you use the -wi flag right? 
> Otherwise it's an error. Is there a problem with the error not 
> being generated when you don't have warnings turned on?

Yes that is exactly the case. With -w or no switch there is no 
error or warning. And no inlining.

-Steve



More information about the Digitalmars-d mailing list