Fix the build with GCC4.8
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
3459199e5d
commit
70b978fd9f
@ -154,10 +154,10 @@ namespace agg
|
||||
return path_cmd_line_to;
|
||||
}
|
||||
|
||||
double ct2_x;
|
||||
double ct2_y;
|
||||
double end_x;
|
||||
double end_y;
|
||||
double ct2_x = 0;
|
||||
double ct2_y = 0;
|
||||
double end_x = 0;
|
||||
double end_y = 0;
|
||||
|
||||
unsigned cmd = m_source->vertex(x, y);
|
||||
switch(cmd)
|
||||
|
@ -187,8 +187,8 @@ namespace agg
|
||||
template<class VertexSource>
|
||||
void add_path(VertexSource& vs, unsigned path_id=0)
|
||||
{
|
||||
double x;
|
||||
double y;
|
||||
double x = 0;
|
||||
double y = 0;
|
||||
|
||||
unsigned cmd;
|
||||
vs.rewind(path_id);
|
||||
|
@ -457,7 +457,7 @@ TWO_KEY_AVL_TREE_CLASS_NAME::FindFirstClosest(const PrimaryKey& key, bool less,
|
||||
{
|
||||
const NodeStrategy& strategy = fTreeMap.GetNodeStrategy();
|
||||
|
||||
Node* parent;
|
||||
Node* parent = NULL;
|
||||
Node* node = _FindFirst(key, &parent);
|
||||
if (node == NULL) {
|
||||
// not found -- try to get the closest node
|
||||
|
@ -1453,7 +1453,7 @@ void FlangerNode::filterBuffer(
|
||||
for(uint32 inPos = 0; inPos < samples; ++inPos) {
|
||||
|
||||
// read from input buffer
|
||||
_frame inFrame;
|
||||
_frame inFrame = {};
|
||||
inFrame.channel[0] = ((float*)input.data())[inPos];
|
||||
if(stereo)
|
||||
inFrame.channel[1] = ((float*)input.data())[inPos + 1];
|
||||
@ -1468,7 +1468,7 @@ void FlangerNode::filterBuffer(
|
||||
|
||||
|
||||
// read low-index (possibly only) frame
|
||||
_frame delayedFrame;
|
||||
_frame delayedFrame = {};
|
||||
|
||||
int32 readFrameLo = (int32)floor(fReadFrame);
|
||||
uint32 pos = readFrameLo * channels;
|
||||
|
@ -623,7 +623,7 @@ AddPathsFromVertexSource(Icon* icon, Shape* shape,
|
||||
return B_NO_MEMORY;
|
||||
|
||||
source.rewind(index);
|
||||
double x1, y1;
|
||||
double x1 = 0, y1 = 0;
|
||||
unsigned cmd = source.vertex(&x1, &y1);
|
||||
bool keepGoing = true;
|
||||
int32 subPath = 0;
|
||||
@ -688,7 +688,7 @@ AddPathsFromVertexSource(Icon* icon, Shape* shape,
|
||||
break;
|
||||
|
||||
case agg::path_cmd_curve3: {
|
||||
double x2, y2;
|
||||
double x2 = 0, y2 = 0;
|
||||
cmd = source.vertex(&x2, &y2);
|
||||
//printf("curve3 (%.2f, %.2f)\n", x1, y1);
|
||||
//printf(" (%.2f, %.2f)\n", x2, y2);
|
||||
@ -715,8 +715,8 @@ AddPathsFromVertexSource(Icon* icon, Shape* shape,
|
||||
}
|
||||
|
||||
case agg::path_cmd_curve4: {
|
||||
double x2, y2;
|
||||
double x3, y3;
|
||||
double x2 = 0, y2 = 0;
|
||||
double x3 = 0, y3 = 0;
|
||||
cmd = source.vertex(&x2, &y2);
|
||||
cmd = source.vertex(&x3, &y3);
|
||||
|
||||
|
@ -541,7 +541,7 @@ CopyEngine::_WriteThread()
|
||||
|
||||
bigtime_t now = system_time();
|
||||
|
||||
Buffer* buffer;
|
||||
Buffer* buffer = NULL;
|
||||
status_t ret = fBufferQueue.Pop(&buffer, bufferWaitTimeout);
|
||||
if (ret == B_TIMED_OUT) {
|
||||
// no buffer, timeout
|
||||
|
@ -313,7 +313,7 @@ printf("InfoWin::Update(0x%08" B_PRIx32 ")\n", which);
|
||||
fLabelsView->Insert(label << "\n\n\n");
|
||||
BString s;
|
||||
media_format format;
|
||||
media_raw_video_format videoFormat;
|
||||
media_raw_video_format videoFormat = {};
|
||||
err = fController->GetEncodedVideoFormat(&format);
|
||||
if (err < B_OK) {
|
||||
s << "(" << strerror(err) << ")\n";
|
||||
@ -350,7 +350,7 @@ printf("InfoWin::Update(0x%08" B_PRIx32 ")\n", which);
|
||||
fLabelsView->Insert(label << "\n\n\n");
|
||||
BString s;
|
||||
media_format format;
|
||||
media_raw_audio_format audioFormat;
|
||||
media_raw_audio_format audioFormat = {};
|
||||
err = fController->GetEncodedAudioFormat(&format);
|
||||
//string_for_format(format, buf, sizeof(buf));
|
||||
//printf("%s\n", buf);
|
||||
|
@ -107,8 +107,8 @@ namespace agg
|
||||
template<class VertexSource>
|
||||
void add_path(VertexSource& vs, unsigned path_id=0)
|
||||
{
|
||||
double x;
|
||||
double y;
|
||||
double x = 0;
|
||||
double y = 0;
|
||||
|
||||
unsigned cmd;
|
||||
vs.rewind(path_id);
|
||||
|
Loading…
Reference in New Issue
Block a user