Code: Select all
int cons_col()
{
for(int col =0; rx_state_== MAC_IDLE; col++)
return col;
}
Beim Kompilieren erhalte ich die Warnung: Steuerung erreicht Ende Nicht-Void-Funktion.
Wird dieses Problem behoben, wenn am Ende der obigen Funktion Folgendes hinzugefügt wird:
Code: Select all
if (coll == 0)
return 0;