Gast
#1881588
Hallo werte User,
ich hab grad ein Problem mit nem Struct und Funktionspointern. Was läuft
hier falsch?
const struct { uint8_t *(check_window_pos_fptr)(void);
uint8_t close_partially;
uint8_t dont_close;
} config_array[] = { { Get_WindowsOpenPercentFL(),
IND_FLAG_PARTIALLY_CLOSE_LEFT, IND_FLAG_DONT_CLOSE_LEFT },
{ Get_WindowsOpenPercentFR(),
IND_FLAG_PARTIALLY_CLOSE_RIGHT, IND_FLAG_DONT_CLOSE_RIGHT } };
Warum bekomm ich für den Funktionspointer eine Fehlermeldung(s.u. -
Zeile: 251)?
ksg_ext.c:251: error: field 'check_window_pos_fptr' declared as a
function
ksg_ext.c:254: warning: initialization makes pointer from integer
without a cast
ksg_ext.c:255: warning: initialization makes pointer from integer
without a cast
ksg_ext.c:254: warning: unused variable 'config_array'
Ich würde mich über Eure Hilfe sehr freuen.
Vielen Dank und Gruß,
Christian