Skip to content

Commit 9aec033

Browse files
authored
Merge pull request #2395 from mitza-oci/warnings
Fixed warnings
2 parents 1e4918f + 2d0c5bd commit 9aec033

10 files changed

Lines changed: 181 additions & 189 deletions

File tree

ACE/ace/Message_Queue_T.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::enqueue_head_i (ACE_Message_Block
13291329
if (this->signal_dequeue_waiters () == -1)
13301330
return -1;
13311331
else
1332-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
1332+
return static_cast<int> (this->cur_count_);
13331333
}
13341334

13351335
// Actually put the node at its proper position relative to its
@@ -1520,7 +1520,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_head_i (ACE_Message_Block
15201520
&& this->signal_enqueue_waiters () == -1)
15211521
return -1;
15221522
else
1523-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
1523+
return static_cast<int> (this->cur_count_);
15241524
}
15251525

15261526
// Get the earliest (i.e., FIFO) ACE_Message_Block with the lowest
@@ -1596,7 +1596,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_prio_i (ACE_Message_Block
15961596
&& this->signal_enqueue_waiters () == -1)
15971597
return -1;
15981598
else
1599-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
1599+
return static_cast<int> (this->cur_count_);
16001600
}
16011601

16021602
// Actually get the last ACE_Message_Block (no locking, so must be
@@ -1645,7 +1645,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_tail_i (ACE_Message_Block
16451645
&& this->signal_enqueue_waiters () == -1)
16461646
return -1;
16471647
else
1648-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
1648+
return static_cast<int> (this->cur_count_);
16491649
}
16501650

16511651
// Actually get the ACE_Message_Block with the lowest deadline time
@@ -1740,7 +1740,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::peek_dequeue_head (ACE_Message_Bl
17401740
return -1;
17411741

17421742
first_item = this->head_;
1743-
return ACE_Utils::truncate_cast<int> (static_cast<ssize_t> (this->cur_count_));
1743+
return static_cast<int> (this->cur_count_);
17441744
}
17451745

17461746
template <ACE_SYNCH_DECL, class TIME_POLICY> int
@@ -2441,7 +2441,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::enqueue_i (ACE_Message_Bl
24412441
}
24422442
else
24432443
{
2444-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
2444+
return static_cast<int> (this->cur_count_);
24452445
}
24462446
}
24472447

@@ -2641,7 +2641,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_head_i (ACE_Messa
26412641
}
26422642
else
26432643
{
2644-
return ACE_Utils::truncate_cast<int> (this->cur_count_);
2644+
return static_cast<int> (this->cur_count_);
26452645
}
26462646
}
26472647

TAO/TAO_IDL/be/be_codegen.cpp

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

37513751
// Factor out the constant coefficient.
37523752
float const coefficient =
3753-
static_cast<float> (MAX_VAL / (static_cast<float> (RAND_MAX) + 1.0f));
3753+
static_cast<float> (MAX_VAL / static_cast<float> (RAND_MAX) + 1.0f);
37543754

37553755
for (unsigned int n = 0; n < NUM_CHARS; ++n)
37563756
{

TAO/TAO_IDL/fe/idl.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ static AST_Decl * idl_find_node (const char *);
114114

115115
#define IDL4_KEYWORD(TOKEN_NAME) if (idl_global->idl_version_ >= IDL_VERSION_4) return TOKEN_NAME;
116116

117+
#ifdef __GNUC__
118+
# pragma GCC diagnostic ignored "-Wmisleading-indentation"
119+
#endif
120+
117121
%}
118122

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

0 commit comments

Comments
 (0)