Re: [Mesa-dev] [PATCH 2/9] util: fix uninitialized table

2012-04-02 Thread Brian Paul
On 04/01/2012 04:24 PM, nobled wrote: Most of the 256 values in the 'generic_to_slot' table were supposed to be initialized with the default value 0xff, but were left at zero (from CALLOC_STRUCT()) instead. Noticed by clang: u_linkage.h:60:31: warning: argument to 'sizeof' in 'memset' call is t

[Mesa-dev] [PATCH 2/9] util: fix uninitialized table

2012-04-01 Thread nobled
Most of the 256 values in the 'generic_to_slot' table were supposed to be initialized with the default value 0xff, but were left at zero (from CALLOC_STRUCT()) instead. Noticed by clang: u_linkage.h:60:31: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination;