mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-01 11:32:34 +01:00
This patch addresses this warning of gcc: wfontpanel.c: In function 'listFamilies': wfontpanel.c:588: warning: missing sentinel in function call Fix it by using the 'NULL' pointer instead of 0 (zero) as the sentinel. For more information, see http://www.linuxonly.nl/docs/2/2_GCC_4_warnings_about_sentinels.html in particular, "On most systems, there is no difference between 0 and (char *)0. On 64 bit systems, however, the integer 0 is 32 bits and the pointer 0 is 64 bits. The compiler does not know whether it is an integer or a pointer, and defaults for the integer. This will not clear the upper 32 bits and the function will not stop scanning its parameters." Note that here in my 64-bit Mandriva I don't need to cast (char *)NULL.
21 KiB
21 KiB