Makefile: pass -Wno-deprecated-declarations to HOSTCC
These are kind of a pain to watch, and mainline doesn't have a proper fix yet. scripts/extract-cert.c:46:14: warning: 'ERR_get_error_line' is deprecated [-Wdeprecated-declarations] while ((e = ERR_get_error_line(&file, &line))) { ^ /usr/include/openssl/err.h:410:1: note: 'ERR_get_error_line' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' ^ scripts/extract-cert.c:59:9: warning: 'ERR_get_error_line' is deprecated [-Wdeprecated-declarations] while (ERR_get_error_line(&file, &line)) {} ^ /usr/include/openssl/err.h:410:1: note: 'ERR_get_error_line' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' ^ scripts/extract-cert.c:124:3: warning: 'ENGINE_load_builtin_engines' is deprecated [-Wdeprecated-declarations] ENGINE_load_builtin_engines(); ^ /usr/include/openssl/engine.h:358:1: note: 'ENGINE_load_builtin_engines' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' ^ scripts/extract-cert.c:126:7: warning: 'ENGINE_by_id' is deprecated [-Wdeprecated-declarations] e = ENGINE_by_id(pkcs11); ^ /usr/include/openssl/engine.h:336:1: note: 'ENGINE_by_id' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' ^ scripts/extract-cert.c:128:7: warning: 'ENGINE_init' is deprecated [-Wdeprecated-declarations] if (ENGINE_init(e)) ^ /usr/include/openssl/engine.h:620:1: note: 'ENGINE_init' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' ^ scripts/extract-cert.c:133:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated [-Wdeprecated-declarations] ^ /usr/include/openssl/engine.h:478:1: note: 'ENGINE_ctrl_cmd_string' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' ^ scripts/extract-cert.c:134:3: warning: 'ENGINE_ctrl_cmd' is deprecated [-Wdeprecated-declarations] ENGINE_ctrl_cmd(e, LOAD_CERT_CTRL, 0, &parms, NULL, 1); ^ /usr/include/openssl/engine.h:450:1: note: 'ENGINE_ctrl_cmd' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name, /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' ^ /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' ^ 7 warnings generated. Signed-off-by: Juhyung Park <qkrwngud825@gmail.com> Signed-off-by: Cykeek <Cykeek@proton.me> Signed-off-by: improbir <ghosh_probir@yahoo.com>
Loading
Please register or sign in to comment