Module Loading Warnings
Why on my Fedora core 1 installation when i compile any module with -Wall i
got following warnings? What are these warnings? Also what is 1)__set_64bit_var 2)dereferencing type-punned pointer will break strict-aliasing rules warnings? gcc -c -O2 -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux-2.4.22-1.2115.nptl/include -I../inc mainMod.c -o mainMod.o In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/asm/semaphore.h:39, from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/fs.h:202, from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/capability.h:17, from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/binfmts.h:4, from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/sched.h:10, from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/mm.h:4, from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:14, from mainMod.c:12: /usr/src/linux-2.4.22-1.2115.nptl/include/asm/system.h: In function `__set_64bit_var': /usr/src/linux-2.4.22-1.2115.nptl/include/asm/system.h:189: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/src/linux-2.4.22-1.2115.nptl/include/asm/system.h:189: warning: dereferencing type-punned pointer will break strict-aliasing rules |
All times are GMT -5. The time now is 09:43 AM. |