Skip to content

Commit c0e5e01

Browse files
committed
Merge pull request #2395 from mitza-oci/warnings
Fixed warnings
1 parent 5b2c308 commit c0e5e01

10 files changed

Lines changed: 179 additions & 187 deletions

File tree

ACE/ace/Message_Queue_T.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::enqueue_head_i (ACE_Message_Block
13241324
if (this->signal_dequeue_waiters () == -1)
13251325
return -1;
13261326
else
1327-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
1327+
return static_cast<int> (this->cur_count_);
13281328
}
13291329

13301330
// Actually put the node at its proper position relative to its
@@ -1515,7 +1515,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_head_i (ACE_Message_Block
15151515
&& this->signal_enqueue_waiters () == -1)
15161516
return -1;
15171517
else
1518-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
1518+
return static_cast<int> (this->cur_count_);
15191519
}
15201520

15211521
// Get the earliest (i.e., FIFO) ACE_Message_Block with the lowest
@@ -1591,7 +1591,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_prio_i (ACE_Message_Block
15911591
&& this->signal_enqueue_waiters () == -1)
15921592
return -1;
15931593
else
1594-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
1594+
return static_cast<int> (this->cur_count_);
15951595
}
15961596

15971597
// Actually get the last ACE_Message_Block (no locking, so must be
@@ -1640,7 +1640,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_tail_i (ACE_Message_Block
16401640
&& this->signal_enqueue_waiters () == -1)
16411641
return -1;
16421642
else
1643-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
1643+
return static_cast<int> (this->cur_count_);
16441644
}
16451645

16461646
// Actually get the ACE_Message_Block with the lowest deadline time
@@ -1735,7 +1735,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::peek_dequeue_head (ACE_Message_Bl
17351735
return -1;
17361736

17371737
first_item = this->head_;
1738-
return ACE_Utils::truncate_cast<int> (static_cast<ssize_t> (this->cur_count_));
1738+
return static_cast<int> (this->cur_count_);
17391739
}
17401740

17411741
template <ACE_SYNCH_DECL, class TIME_POLICY> int
@@ -2436,7 +2436,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::enqueue_i (ACE_Message_Bl
24362436
}
24372437
else
24382438
{
2439-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
2439+
return static_cast<int> (this->cur_count_);
24402440
}
24412441
}
24422442

@@ -2636,7 +2636,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_head_i (ACE_Messa
26362636
}
26372637
else
26382638
{
2639-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
2639+
return static_cast<int> (this->cur_count_);
26402640
}
26412641
}
26422642

TAO/TAO_IDL/be/be_codegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3772,7 +3772,7 @@ TAO_CodeGen::make_rand_extension (char * const t)
37723772

37733773
// Factor out the constant coefficient.
37743774
float const coefficient =
3775-
static_cast<float> (MAX_VAL / (static_cast<float> (RAND_MAX) + 1.0f));
3775+
static_cast<float> (MAX_VAL / static_cast<float> (RAND_MAX) + 1.0f);
37763776

37773777
for (unsigned int n = 0; n < NUM_CHARS; ++n)
37783778
{

TAO/TAO_IDL/fe/idl.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ static AST_Decl * idl_find_node (const char *);
112112
#undef ECHO
113113
#endif
114114

115+
#ifdef __GNUC__
116+
# pragma GCC diagnostic ignored "-Wmisleading-indentation"
117+
#endif
118+
115119
%}
116120

117121
/* SO we don't choke on files that use \r\n */

0 commit comments

Comments
 (0)