Hi Satyam,Of course -- essentially GCC cannot really figure out whether all the possible paths of execution include initialisation or not and complains just in case. GCC for MIPS used to be problematic enough elsewhere I do not want to turn back. Even 4.0.x generates bad code, e.g. fs/partitions/msdos.c gets miscompiled for the big endianness (but not for the little one!). Compared to that some useless warnings are negligible. This 4.1.2 version has triggered no problems with the kernel yet (though I suspect it is still so-so -- e.g. gmp gets miscompiled; which used to be fine with 4.0.x, oddly enough). Perhaps preinitialising to an error value such as -EINVAL would be of more sense. This way any error paths lacking initialisation are still reported as errors, even though the classification might be wrong. In fact more exotic one might be chosen (the glibc manual has some nice proposals if none of these we currently define fits) so the mistake is more obvious. Maciej -
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Andrew Morton | 2.6.23-rc6-mm1 |
| Eric Paris | [RFC 0/5] [TALPA] Intro to a linux interface for on access scanning |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
git: | |
