diff options
| author | Christian Hopps <chopps@labn.net> | 2024-12-15 21:37:41 -0500 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2024-12-15 22:01:56 -0500 |
| commit | fb85d18f59153bad58c5ce951e95affe0e2a5562 (patch) | |
| tree | b6d15db4e8e3760dce6fc55f75045c4bd5858792 /lib/segment_routing.h | |
| parent | a65cdb60a35205a8f9040f925e86614fe5bd4658 (diff) | |
lib: darr: fix bug with nested macro use
- WHen declaring macro scoped variables, can run into problem if the macro
variable passed in has the same name as the new variable introduced in the inner
scope. We don't get a warning and the uses will be wrong.
e.g.,
```
{
int __len = 10;
foo(__len); // => 10 and not 15 as we wanted.
}
```
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/segment_routing.h')
0 files changed, 0 insertions, 0 deletions
