Commit b51980e6 authored by Matthias Braun's avatar Matthias Braun
Browse files

fixed warnigns

[r14595]
parent 3571b991
......@@ -190,6 +190,7 @@ void conv_opt_walker(ir_node *node, void *data)
ir_mode *pred_mode;
ir_mode *mode;
int costs;
(void) data;
#if 0
if(is_Cmp(node)) {
......
......@@ -135,6 +135,7 @@ static int ent_leaves_t_cmp(const void *elt, const void *key, size_t size)
{
const ent_leaves_t *c1 = elt;
const ent_leaves_t *c2 = key;
(void) size;
return c1->ent != c2->ent;
}
......@@ -161,6 +162,7 @@ static int sels_cmp(const void *elt, const void *key, size_t size)
{
const sels_t *c1 = elt;
const sels_t *c2 = key;
(void) size;
return c1->sel != c2->sel;
}
......@@ -187,6 +189,7 @@ static int call_cmp(const void *elt, const void *key, size_t size)
{
const call_access_t *c1 = elt;
const call_access_t *c2 = key;
(void) size;
return c1->call != c2->call;
}
......@@ -200,6 +203,7 @@ static int path_cmp(const void *elt, const void *key, size_t size)
{
const path_t *p1 = elt;
const path_t *p2 = key;
(void) size;
/* we can use memcmp here, because identical tarvals should have identical addresses */
return memcmp(p1->path, p2->path, p1->path_len * sizeof(p1->path[0]));
......
......@@ -510,6 +510,7 @@ void escape_analysis(int run_scalar_replace, check_alloc_entity_func callback)
int i;
struct obstack obst;
walk_env_t *env, *elist;
(void) run_scalar_replace;
if (get_irp_callee_info_state() != irg_callee_info_consistent) {
assert(! "need callee info");
......
......@@ -181,6 +181,7 @@ static int value_cmp(const void *elt, const void *key, size_t size)
{
const value_entry *e1 = elt;
const value_entry *e2 = key;
(void) size;
return identities_cmp(e1->value, e2->value);
}
......
......@@ -52,6 +52,10 @@ DEBUG_ONLY(firm_dbg_module_t *dbg);
/** allow every Psi to be created. */
static int default_allow_ifconv(ir_node *sel, ir_node* phi_list, int i, int j)
{
(void) sel;
(void) phi_list;
(void) i;
(void) j;
return 1;
}
......@@ -397,6 +401,8 @@ static void init_block_link(ir_node *block, void *env)
*/
static void collect_phis(ir_node *node, void *env)
{
(void) env;
if (is_Phi(node)) {
ir_node *block = get_nodes_block(node);
block_info *bi = get_block_blockinfo(block);
......@@ -613,6 +619,8 @@ static ir_node* split_psi(ir_node* psi)
static void optimise_psis(ir_node* node, void* env)
{
(void) env;
if (get_irn_op(node) != op_Psi) return;
#if 1
node = fold_psi(node);
......
......@@ -104,6 +104,7 @@ static void AliasSetAdder(ir_node* block, void* env)
{
ir_nodeset_t* alias_set;
size_t i;
(void) env;
alias_set = NEW_ARR_D(ir_nodeset_t, &obst, count_addrs);
for (i = 0; i < count_addrs; i++) {
......@@ -134,6 +135,7 @@ static void AliasSetDestroyer(ir_node* block, void* env)
{
ir_nodeset_t* alias_set = get_irn_link(block);
size_t i;
(void) env;
for (i = 0; i < count_addrs; i++) {
ir_nodeset_destroy(&alias_set[i]);
......@@ -552,6 +554,7 @@ static void NormaliseSync(ir_node* node, void* env)
ir_node** in;
size_t count_preds;
size_t i;
(void) env;
if (!is_Sync(node)) return;
......
......@@ -72,6 +72,7 @@ static int set_cmp(const void *elt, const void *key, size_t size)
{
const copies_t *c1 = elt;
const copies_t *c2 = key;
(void) size;
return c1->irn != c2->irn;
}
......@@ -112,6 +113,8 @@ set_preds (set *l_n, copies_t *value, induct_var_info *info, int unroll_factor,
ir_node *loop_head;
int i, p, irn_arity;
copies_t key, *value_pred;
(void) env;
if(value->copy[0] == NULL ||
get_irn_op(value->irn) != get_irn_op(value->copy[0]))
return;
......
......@@ -39,6 +39,7 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
* Copy the calling conventions from the entities to the call type.
*/
static void update_calls(ir_node *call, void *env) {
(void) env;
if (is_Call(call)) {
ir_node *ptr = get_Call_ptr(call);
......
......@@ -117,6 +117,7 @@ static ir_node *reduce(ir_node *orig, ir_node *iv, ir_node *rc, iv_env *env);
static int LFTR_cmp(const void *e1, const void *e2, size_t size) {
const LFTR_edge *l1 = e1;
const LFTR_edge *l2 = e2;
(void) size;
return l1->src != l2->src;
}
......@@ -198,6 +199,7 @@ static int is_rc(ir_node *irn, ir_node *header_block) {
static int quad_cmp(const void *e1, const void *e2, size_t size) {
const quadruple_t *c1 = e1;
const quadruple_t *c2 = e2;
(void) size;
return c1->code != c2->code || c1->op1 != c2->op1 || c1->op2 != c2->op2;
}
......@@ -1015,6 +1017,7 @@ static void lftr(ir_graph *irg, iv_env *env) {
*/
static void clear_and_fix(ir_node *irn, void *env)
{
(void) env;
set_irn_link(irn, NULL);
if (is_Proj(irn)) {
......
......@@ -86,6 +86,7 @@ static int path_cmp(const void *elt, const void *key, size_t size)
{
const path_t *p1 = elt;
const path_t *p2 = key;
(void) size;
/* we can use memcmp here, because identical tarvals should have identical addresses */
return memcmp(p1->path, p2->path, p1->path_len * sizeof(p1->path[0]));
......@@ -100,6 +101,7 @@ static int ent_cmp(const void *elt, const void *key, size_t size)
{
const scalars_t *c1 = elt;
const scalars_t *c2 = key;
(void) size;
return c1->ent != c2->ent;
}
......
......@@ -586,6 +586,7 @@ static void reduce_itervar(ir_node *itervar_phi, void *env)
induct_var_info ivi;
/* check if a iteration variable be reduced.*/
int reduced = 0;
(void) env;
if (! is_Phi(itervar_phi))
return;
......
......@@ -164,6 +164,7 @@ static ir_node *normalize_values_type(ir_type *totype, ir_node *pred) {
static void normalize_irn_class_cast(ir_node *n, void *env) {
ir_node *res;
(void) env;
if (get_irn_op(n) == op_Cast) {
ir_node *pred = get_Cast_op(n);
ir_type *totype = get_Cast_type(n);
......@@ -395,6 +396,7 @@ void remove_Cmp_Null_cast(ir_node *cmp) {
* Post-Walker:
*/
static void irn_optimize_class_cast(ir_node *n, void *env) {
(void) env;
if (get_irn_op(n) == op_Cast)
cancel_out_casts(n);
else if (get_irn_op(n) == op_Sel)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment