Skip to content

Instantly share code, notes, and snippets.

@fennectech
Created January 14, 2020 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fennectech/10d096e1dd6cd2c4a81c56d0722d9d1f to your computer and use it in GitHub Desktop.
Save fennectech/10d096e1dd6cd2c4a81c56d0722d9d1f to your computer and use it in GitHub Desktop.
[fennectech@jasper ~/switch-dev/nxsh]$ make dist
make[1]: Entering directory '/home/fennectech/switch-dev/nxsh'
make[1]: Leaving directory '/home/fennectech/switch-dev/nxsh'
make[1]: Entering directory '/home/fennectech/switch-dev/nxsh'
acc.c
aarch64-none-elf-gcc -MMD -MP -MF /home/fennectech/switch-dev/nxsh/build/acc.d -g -Wall -O2 -ffunction-sections -lcurl -lm -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -I/home/fennectech/switch-dev/nxsh/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/fennectech/switch-dev/nxsh/build -D__SWITCH__ -c /home/fennectech/switch-dev/nxsh/source/acc.c -o acc.o
/home/fennectech/switch-dev/nxsh/source/acc.c: In function 'nxsh_acc':
/home/fennectech/switch-dev/nxsh/source/acc.c:19:9: error: too few arguments to function 'accountInitialize'
19 | accountInitialize();
| ^~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libnx/include/switch/services/fs.h:13,
from /opt/devkitpro/libnx/include/switch.h:49,
from /home/fennectech/switch-dev/nxsh/include/nxsh.h:3,
from /home/fennectech/switch-dev/nxsh/source/acc.c:4:
/opt/devkitpro/libnx/include/switch/services/../services/acc.h:52:8: note: declared here
52 | Result accountInitialize(AccountServiceType service_type);
| ^~~~~~~~~~~~~~~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:39:41: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
39 | char *id = format_u128_hex(*(u128*)&account_ids[i]);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:50:9: error: too few arguments to function 'accountInitialize'
50 | accountInitialize();
| ^~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libnx/include/switch/services/fs.h:13,
from /opt/devkitpro/libnx/include/switch.h:49,
from /home/fennectech/switch-dev/nxsh/include/nxsh.h:3,
from /home/fennectech/switch-dev/nxsh/source/acc.c:4:
/opt/devkitpro/libnx/include/switch/services/../services/acc.h:52:8: note: declared here
52 | Result accountInitialize(AccountServiceType service_type);
| ^~~~~~~~~~~~~~~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:71:45: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
71 | char *id = format_u128_hex(*(u128*)&account_ids[i]);
| ^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [/opt/devkitpro/devkitA64/base_rules:19: acc.o] Error 1
make[1]: *** [Makefile_nro:157: build] Error 2
make[1]: Leaving directory '/home/fennectech/switch-dev/nxsh'
make: *** [Makefile:15: dist] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment