WMIConfig compilation warning and segfault
openmoko at asheesh.org
Sun Mar 7 06:15:27 CET 2010
On Sat, 27 Feb 2010, Niels Heyvaert wrote:
> Still struggling with wmiconfig.
> I managed to compile, as mentioned before, but still a few warnings remain:
> wmiconfig.c: In function 'getPhyMode':
> wmiconfig.c:2741: warning: missing initializer
> wmiconfig.c:2741: warning: (near initialization for 'phyModeMap.phyMode')
> wmiconfig.c: In function 'main':
> wmiconfig.c:465: warning: 'pmkidUserInfo.numPMKIDUser' may be used uninitialized in this function
> wmiconfig.c:465: warning: 'pmkidUserInfo.pmkidInfo' may be used uninitialized in this function
> wmiconfig.c:473: warning: 'ssid' may be used uninitialized in this function
> When executing it displays the help message. But when trying the famous
> "wmiconfig -i eth0 --power maxperf" the whole thing just segfaults.
> Is it linked to the warnings I get during compilation?
Give us a backtrace from the segfaulting app. Check out
https://wiki.ubuntu.com/Backtrace for information on that.
Let us know if you have questions as to how to generate your backgrace.
So, is the glass half empty, half full, or just twice as
large as it needs to be?
More information about the devel