Warning As Error : Function returning uninitialized 'flag'

Bug #537880 reported by Jobin Augustine
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
Medium
Jobin Augustine
Cherry
Fix Released
Medium
Jobin Augustine

Bug Description

With optimization -Os, gcc says so.

cc1plus: warnings being treated as errors
plugin/myisam/mi_search.cc: In function ‘int _mi_bin_search(MI_INFO*, MI_KEYDEF*, unsigned char*, unsigned char*, uint32_t, uint32_t, unsigned char**, unsigned char*, bool*)’:
plugin/myisam/mi_search.cc:178: error: ‘flag’ may be used uninitialized in this function [-Wuninitialized]

This is the only one warning remaining to achieve -Os optimisation.

found that initialising with a constant solves the problem.

Thank you,
Jobin.

Related branches

Revision history for this message
Jay Pipes (jaypipes) wrote :

Hi! Thanks for the bug report. Care to submit a branch with a patch? I can walk you through the process if you'd like? Hop onto #drizzle IRC on Freenode.net (my nick is jaypipes) if you'd like help getting your first contribution into the tree. :)

Cheers!

Jay

Revision history for this message
Jobin Augustine (jobinau) wrote :

I am very much excited make it myself..
Yes..Yes.. i shall do it.
currently i am going though your slides in blog "A Contributor’s Guide to Launchpad and Bazaar"
Let me do my home work.. then things will be easier i believe.

Thank you Jay. Thanks a lot.
-Jobin

Revision history for this message
Jay Pipes (jaypipes) wrote :

Sounds good! Email me if you've got any questions. I'm always available to help.

Changed in drizzle:
assignee: nobody → Jobin Augustine (jobinau)
importance: Undecided → Medium
Changed in drizzle:
milestone: none → 2010-04-07
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.