Wireshark-dev: Re: [Wireshark-dev] Warnings in gtkvumeter.c
From: Stephen Fisher <stephentfisher@xxxxxxxxx>
Date: Wed, 8 Nov 2006 16:59:56 -0800
On Wed, Nov 08, 2006 at 04:48:58PM -0800, Stephen Fisher wrote:

> One way that you can fix the warning is by manually assigning numbers 
> to the enumerated values in gtkvumeter.h:

A cleaner fix would be to just reverse the parameter order:

CLAMP (scaling, GTK_VUMETER_SCALING_LINEAR, GTK_VUMETER_SCALING_LOG);

becomes..

CLAMP (scaling, GTK_VUMETER_SCALING_LOG, GTK_VUMETER_SCALING_LINEAR);

And the same for the other warning.


Steve