Re: compile message
Amon Ott <[email protected]>
| Newsgroups | gmane.linux.rsbac |
|---|---|
| Message-ID | <[email protected]> |
On Monday 20 June 2011 wrote Jens Kasten: > kernel 2.6.32.41 > I get on compiling the kernel that message: > > rsbac/data_structures/aci_data_structures.c: In function > ‘stats_proc_show’: > rsbac/data_structures/aci_data_structures.c:3091: warning: comparison of > unsigned expression >= 0 is always true > > I grep for fd_count and on line 2925 is it defined as u_long. > > On line 3090 the variable get an assigning: > fd_count = rsbac_list_count(device_p->handles.gen); > > Means that compiler warning, even if function rsbac_list_count would > return a negative value it would never be assigned as a negative value > to fd_count because its defined as unsigned long? Well spotted! Fixed in Git repos. Thanks. Amon. -- http://www.rsbac.org - GnuPG: 2048g/5DEAAA30 2002-10-22 _______________________________________________ rsbac mailing list [email protected] http://www.rsbac.org/mailman/listinfo/rsbac