Merge lp:~jobinau/drizzle/reviews into lp:~drizzle-trunk/drizzle/development
Proposed by
Jobin Augustine
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~jobinau/drizzle/reviews |
Merge into: | lp:~drizzle-trunk/drizzle/development |
Diff against target: |
20 lines (+2/-2) 1 file modified
plugin/myisam/mi_search.cc (+2/-2) |
To merge this branch: | bzr merge lp:~jobinau/drizzle/reviews |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jay Pipes (community) | Approve | ||
Monty Taylor | Approve | ||
Review via email: mp+22254@code.launchpad.net |
Description of the change
This is a fix for Warning as Error bug 537880.
GCC optimization -Os gives a strong warning (Error) that _mi_seq_search is retuning flag which is not initialized.
other replacement search functions _mi_prefix_
so this patch initializes flag in _mi_seq_search to "0".
This was the only obstacle to achive -Os optimization in GCC.
To post a comment you must log in.
Hi Jobin!
Good for you getting your feet wet with the code base! :)
One tiny thing, though...we use no space before and one space after the assignment operator, so you should change:
int flag=0;
to int flag= 0;
I know, I know, I'm being strict on code style! Here is the coding guidelines:
http:// drizzle. org/wiki/ Coding_ Standards
Cheers and welcome to the contributor community!
Jay