Ticket #8204

gcc-4.0.3 用の修正
Open Date: 2006-03-24 00:46 Last Update: 2006-03-24 10:28

Reporter:
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
1 - Lowest
Severity:
5 - Medium
Resolution:
None
File:
None

Details

gcc-4.0.3でビルドすると、以下のエラーがでるのを修正します。

bbs_2ch_utils.cc: In member function 'virtual bool
Ochusha::ResponseCursor2chDAT::parse_response(size_t,
const char*, size_t)':
bbs_2ch_utils.cc:749: error: jump to label 'finish'
bbs_2ch_utils.cc:698: error: from here
bbs_2ch_utils.cc:714: error: crosses initialization
of 'char* date_pos'
bbs_2ch_utils.cc:749: error: jump to label 'finish'
bbs_2ch_utils.cc:666: error: from here
bbs_2ch_utils.cc:714: error: crosses initialization
of 'char* date_pos'

RCS file:
/cvsroot/ochusha/ochusha/libochusha/bbs_2ch_utils.cc,v
retrieving revision 1.19
diff -u -r1.19 bbs_2ch_utils.cc
--- libochusha/bbs_2ch_utils.cc 21 Oct 2005 19:55:04
-0000 1.19
+++ libochusha/bbs_2ch_utils.cc 23 Mar 2006 15:37:50 -0000
@@ -614,6 +614,7 @@
assert(memchr(start_pos, '\n', length - 1) == NULL);

char *clone_buffer = NULL;
+ char *date_pos;
bool result = true;
size_t i;

@@ -711,7 +712,7 @@
// 2ちゃんねるの場合、この順序に決め打ちでよいのかな?
iconv_buffer.clear();
iconv_buffer.append(field[2], field_len[2]);
- char *date_pos = iconv_buffer.get_buffer();
+ date_pos = iconv_buffer.get_buffer();

tmp_pos = strstr(date_pos, " ID:");
if (tmp_pos == NULL)

Ticket History (1/1 Histories)

2006-03-24 10:28 Updated by: hir
  • Ticket Close date is changed to 2006-03-24 10:28
  • Priority Update from 5 - Medium to 1 - Lowest
  • Status Update from Open to Closed
Comment
Logged In: YES
user_id=19181

すいません。開発用ブランチでは直ってますね。

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login