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

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Michael Vogel
Addict
Addict
Posts: 2666
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

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

Post 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)
Little John
Addict
Addict
Posts: 4519
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

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

Post 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.
Post Reply