{"action":"opened","issue":{"url":"https://api.github.com/repos/fr3nd/msx-vi/issues/2","repository_url":"https://api.github.com/repos/fr3nd/msx-vi","labels_url":"https://api.github.com/repos/fr3nd/msx-vi/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/fr3nd/msx-vi/issues/2/comments","events_url":"https://api.github.com/repos/fr3nd/msx-vi/issues/2/events","html_url":"https://github.com/fr3nd/msx-vi/issues/2","id":345861888,"node_id":"MDU6SXNzdWUzNDU4NjE4ODg=","number":2,"title":"Compile errors","user":{"login":"sndpl","id":363211,"node_id":"MDQ6VXNlcjM2MzIxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/363211?v=4","gravatar_id":"","url":"https://api.github.com/users/sndpl","html_url":"https://github.com/sndpl","followers_url":"https://api.github.com/users/sndpl/followers","following_url":"https://api.github.com/users/sndpl/following{/other_user}","gists_url":"https://api.github.com/users/sndpl/gists{/gist_id}","starred_url":"https://api.github.com/users/sndpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sndpl/subscriptions","organizations_url":"https://api.github.com/users/sndpl/orgs","repos_url":"https://api.github.com/users/sndpl/repos","events_url":"https://api.github.com/users/sndpl/events{/privacy}","received_events_url":"https://api.github.com/users/sndpl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-30T17:44:58Z","updated_at":"2018-07-30T17:44:58Z","closed_at":null,"author_association":"NONE","body":"Hi, what sdcc version do you use to compile msx-vi? When I try it on my macbook with v3.7.0 I get lots of errors/warnings.\r\n\r\n`19:30:42 [:~/msx-vi] master ± make\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../utils/Hex2bin-1.0.12\r\ngcc -O2 -Wall -o hex2bin hex2bin.c\r\ngcc -O2 -Wall -o mot2bin mot2bin.c\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make -C include\r\nsdasz80 -o crt0msx_msxdos.s\r\nsdasz80 -o crt0msx_msxdos_advanced.s\r\nsdasz80 -o dos2.s\r\nsdasz80 -o getchar.s\r\nsdasz80 -o heap.s\r\nsdasz80 -o iolib.s\r\nsdasz80 -o ioport.s\r\nsdasz80 -o keyboard.s\r\nsdasz80 -o putchar.s\r\nsdasz80 -o vdp.s\r\nsdcc -mz80 -c -o conio.rel conio.c\r\nsdcc -mz80 -c -o mem.rel mem.c\r\nsdcc --code-loc 0x0178 --data-loc 0 --disable-warning 196 -mz80 --no-std-crt0 -Iinclude include/crt0msx_msxdos_advanced.rel include/heap.rel include/iolib.rel vi.c\r\nvi.c:269: error 98: conflict with previous declaration of 'getchar' for attribute 'type' at /usr/local/bin/../share/sdcc/include/stdio.h:85\r\nfrom type 'int function ( ) fixed'\r\n  to type 'unsigned-char function ( ) fixed'\r\nvi.c:283: error 98: conflict with previous declaration of 'putchar' for attribute 'type' at /usr/local/bin/../share/sdcc/include/stdio.h:86\r\nfrom type 'int function ( int fixed) fixed'\r\n  to type 'void function ( unsigned-char fixed) fixed'\r\nvi.c:1318: warning 94: comparison is always false due to limited range of data type\r\nvi.c:1320: warning 94: comparison is always false due to limited range of data type\r\nvi.c:1327: warning 94: comparison is always false due to limited range of data type\r\nmake[1]: *** [vi.ihx] Error 1\r\nmake: *** [all] Error 2`\r\n\r\nWhen I fix the putchar and getchar with int instead of char I get even more errors/warnings:\r\n\r\n`19:33:44 [:~/msx-vi] master* ± make\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../utils/Hex2bin-1.0.12\r\nmake[2]: Nothing to be done for `all'.\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make -C include\r\nmake[2]: Nothing to be done for `all'.\r\nsdcc --code-loc 0x0178 --data-loc 0 --disable-warning 196 -mz80 --no-std-crt0 -Iinclude include/crt0msx_msxdos_advanced.rel include/heap.rel include/iolib.rel vi.c\r\nvi.c:1318: warning 94: comparison is always false due to limited range of data type\r\nvi.c:1320: warning 94: comparison is always false due to limited range of data type\r\nvi.c:1327: warning 94: comparison is always false due to limited range of data type\r\nvi.c:1308: warning 94: comparison is always true resp. false due to limited range of data type\r\nvi.c:1308: warning 94: comparison is always true resp. false due to limited range of data type\r\nvi.c:1308: warning 94: comparison is always true resp. false due to limited range of data type\r\nvi.c:1319: warning 126: unreachable code\r\nvi.c:1319: warning 126: unreachable code\r\nvi.c:1319: warning 126: unreachable code\r\nvi.c:1319: warning 126: unreachable code\r\nvi.c:1319: warning 126: unreachable code\r\nvi.c:1319: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1321: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1322: warning 126: unreachable code\r\nvi.c:1308: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG\r\nvi.c:1308: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG\r\nvi.c:1308: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG\r\nvi.c:1313: warning 126: unreachable code\r\nvi.c:1314: warning 126: unreachable code\r\nvi.c:1326: warning 126: unreachable code\r\nvi.c:1327: warning 126: unreachable code\r\nvi.c:1385: warning 158: overflow in implicit constant conversion\r\nvi.c:1388: warning 158: overflow in implicit constant conversion\r\nvi.c:1419: warning 158: overflow in implicit constant conversion\r\nvi.c:1434: warning 158: overflow in implicit constant conversion\r\nvi.c:1471: warning 158: overflow in implicit constant conversion\r\nvi.c:1511: warning 158: overflow in implicit constant conversion\r\nvi.c:1607: warning 94: comparison is always true resp. false due to limited range of data type\r\nvi.c:1607: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG\r\nused unbound variable in replacement\r\n\r\n?ASlink-Warning-Undefined Global '__sdcc_heap_init' referenced by module ''\r\nmake[1]: *** [vi.ihx] Error 1\r\nrm vi.ihx\r\nmake: *** [all] Error 2`\r\n\r\nFirst time I compile something with sdcc, only used msx-c before :)"}}
{"actor":{"display_login":"sndpl"}}