Page 1 of 1

Not a really bug, at least not a problem...

Posted: Thu Jun 08, 2023 3:02 pm
by Michael Vogel
Just had the following code in PB 5.73 and was wondering if the compiler shouldn't warn about the useless statement in the last line of this code...

Code: Select all

	Structure DpiType
		Mode.i
		Scale.i
		FontName.s
		FontScale.i
	EndStructure
	
	Global Dpi.DpiType
	
	Global Dpi\Scale
	
// Moved from "Bugs - Windows" to "Feature Requests and Wishlists" (Kiffi)

Re: Not a really bug, at least not a problem...

Posted: Thu Jun 08, 2023 3:40 pm
by Little John
Generally speaking, the PureBasic compiler never warns about useless statements. It's the same e.g. with

Code: Select all

a = a
This actually is not a bug report, but a feature request.