jeudi 6 mai 2021

Why compiler get me warning? [duplicate]

When writing code, the compiler warns me about a line:

char name[interface_name.length()+1];

Warning massage:

warning: ISO C++ forbids variable length array ‘name’ [-Wvla]

What could be the reson for this?

Aucun commentaire:

Enregistrer un commentaire