[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-cflow] multiple attributes in a row seem to confuse cflow
From: |
Britton Kerin |
Subject: |
[bug-cflow] multiple attributes in a row seem to confuse cflow |
Date: |
Sun, 3 Apr 2016 14:50:29 -0800 |
This code:
DBUS_EXPORT
DBUS_MALLOC
DBUS_ALLOC_SIZE(1)
void* dbus_malloc (size_t bytes);
produces these warnings:
cflow:/home/bkerin/local/include/dbus-1.0/dbus/dbus-memory.h:47:
__alloc_size__/0 redefined
cflow:/home/bkerin/local/include/dbus-1.0/dbus/dbus-memory.h:42:
this is the place of previous definition
cflow:/home/bkerin/local/include/dbus-1.0/dbus/dbus-memory.h:52:
__alloc_size__/0 redefined
cflow:/home/bkerin/local/include/dbus-1.0/dbus/dbus-memory.h:47:
this is the pla
etc. due to DBUS_ALLOC_SIZE(1) expansion
Even when the adviced --symbol options for GCC from the cflow manual are used.
I think the trouble might be in dirdcl() function in cflow src/parser.c:
if (nexttoken() == PARM_WRAPPER) {
wrapper = 1;
nexttoken(); /* read '(' */
} else
putback();
where it looks like maye itonly handles one wrapper in a row?
Britton
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-cflow] multiple attributes in a row seem to confuse cflow,
Britton Kerin <=