fix C++ comment to avoid compilation error

This commit is contained in:
Gleb Nemshilov 2017-08-06 14:27:26 +07:00
parent 52dbd91f3b
commit b686771a38

View File

@ -26,7 +26,7 @@ element *reverse(element *list) {
element *new = NULL;
element *next = NULL;
#warning Phenom (2017-07-21): I don't know if it is a real memLeak for new. If not remove this warning and add a comment how it is deleted.
// cppcheck-suppress memleak
/* cppcheck-suppress memleak */
while (list != NULL) {
next = list->next;
new = cons(list, new);