hishamhm / dit

A console text editor for Unix systems that you already know how to use
http://hisham.hm/dit
GNU General Public License v2.0
141 stars 9 forks source link

[Git HEAD] Compile error: dit.c:1400:4: error: too many arguments to function ‘Dit_parseBindings’ #36

Closed hartwork closed 4 years ago

hartwork commented 4 years ago

Git commit 40164d7e6aef3921545a550f195b91f08632edd2 broke the build today. If I revert it, this compile error no longer appears:

gcc -DHAVE_CONFIG_H -I.    -std=c99  -DPKGDATADIR=\"/usr/local/share/dit\" -DSYSCONFDIR=\"/usr/local/etc\"  -rdynamic  -Ieditorconfig/include -g -O2 -MT dit-dit.o -MD -MP -MF .deps/dit-dit.Tpo -c -o dit-dit.o `test -f 'dit.c' || echo './'`dit.c
dit.c: In function ‘main’:
dit.c:1400:4: error: too many arguments to function ‘Dit_parseBindings’
    Dit_parseBindings(keys, scripts);
    ^~~~~~~~~~~~~~~~~
dit.c:1318:13: note: declared here
 static void Dit_parseBindings(Dit_Action* keys) {
             ^~~~~~~~~~~~~~~~~
hartwork commented 4 years ago

Fixed by db5c1f06cc4cb66358aff309971489848bd16681, closing :smile: