Skip to content

Commit

Permalink
Do not use parentheses around the declared symbol
Browse files Browse the repository at this point in the history
GCC 8 doesn't like this.
  • Loading branch information
tautschnig committed Jun 5, 2018
1 parent 4f3c102 commit 0c00835
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pointer-analysis/value_set_fivrns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ hash_numbering<irep_idt, irep_id_hash> value_set_fivrnst::function_numbering;
static const char *alloc_adapter_prefix="alloc_adaptor::";

#define forall_objects(it, map) \
for(object_map_dt::const_iterator (it) = (map).begin(); \
for(object_map_dt::const_iterator it = (map).begin(); \
(it)!=(map).end(); \
(it)++)

#define forall_valid_objects(it, map) \
for(object_map_dt::const_iterator (it) = (map).begin(); \
for(object_map_dt::const_iterator it = (map).begin(); \
(it)!=(map).end(); \
(it)++) \
if((map).is_valid_at((it)->first, from_function, from_target_index))

#define Forall_objects(it, map) \
for(object_map_dt::iterator (it) = (map).begin(); \
for(object_map_dt::iterator it = (map).begin(); \
(it)!=(map).end(); \
(it)++)

#define Forall_valid_objects(it, map) \
for(object_map_dt::iterator (it) = (map).begin(); \
for(object_map_dt::iterator it = (map).begin(); \
(it)!=(map).end(); \
(it)++) \
if((map).is_valid_at((it)->first, from_function, from_target_index)) /* NOLINT(*) */
Expand Down

0 comments on commit 0c00835

Please sign in to comment.