Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings on MacOS #9

Open
XVilka opened this issue Oct 19, 2022 · 0 comments
Open

Warnings on MacOS #9

XVilka opened this issue Oct 19, 2022 · 0 comments

Comments

@XVilka
Copy link
Member

XVilka commented Oct 19, 2022

ninja: Entering directory `/Users/user/Library/Application Support/rz-pm/site/artifacts/rz-libmc7/0.4.0/rz-libmc7-0.4.0/build'
[2/9] Compiling C object libmc7_analysis.dylib.p/src_plugin_analysis.c.o
../src/plugin_analysis.c:36:14: warning: incompatible function pointer types initializing 'int (*)(RzAnalysis *, RzAnalysisInfoType)' (aka 'int (*)(struct rz_analysis_t *, enum rz_analysis_arch_info_type_t)') with an expression of type 'int (RzAnalysis *, int)' (aka 'int (struct rz_analysis_t *, int)') [-Wincompatible-function-pointer-types]
        .archinfo = s7_archinfo,
                    ^~~~~~~~~~~
1 warning generated.
[4/9] Compiling C object libmc7_asm.dylib.p/src_simatic.c.o
../src/simatic.c:161:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
../src/simatic.c:161:54: note: treat the string as an argument to avoid this
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^
                                                                   "%s",
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
../src/simatic.c:444:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
../src/simatic.c:444:54: note: treat the string as an argument to avoid this
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^
                                                                   "%s",
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
../src/simatic.c:598:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
../src/simatic.c:598:54: note: treat the string as an argument to avoid this
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^
                                                                   "%s",
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
3 warnings generated.
[5/9] Compiling C object libmc7_analysis.dylib.p/src_simatic.c.o
../src/simatic.c:161:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
../src/simatic.c:161:54: note: treat the string as an argument to avoid this
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^
                                                                   "%s",
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
../src/simatic.c:444:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
../src/simatic.c:444:54: note: treat the string as an argument to avoid this
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^
                                                                   "%s",
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
../src/simatic.c:598:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
../src/simatic.c:598:54: note: treat the string as an argument to avoid this
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^
                                                                   "%s",
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
3 warnings generated.
[6/9] Compiling C object test_simatic.p/src_simatic.c.o
../src/simatic.c:161:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
../src/simatic.c:161:54: note: treat the string as an argument to avoid this
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^
                                                                   "%s",
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
../src/simatic.c:444:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
../src/simatic.c:444:54: note: treat the string as an argument to avoid this
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^
                                                                   "%s",
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
../src/simatic.c:598:54: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
../src/simatic.c:598:54: note: treat the string as an argument to avoid this
                snprintf(instr->assembly, sizeof(instr->assembly), zero_op);
                                                                   ^
                                                                   "%s",
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
3 warnings generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant