- Fix build with gcc14 by ignoring some new errors * Added coolkey-1.1.0-fix-build-gcc14.patch OBS-URL: https://build.opensuse.org/request/show/1222980 OBS-URL: https://build.opensuse.org/package/show/security:chipcard/coolkey?expand=0&rev=25
20 lines
837 B
Diff
20 lines
837 B
Diff
Index: coolkey-1.1.0/src/install/pk11install.c
|
|
===================================================================
|
|
--- coolkey-1.1.0.orig/src/install/pk11install.c
|
|
+++ coolkey-1.1.0/src/install/pk11install.c
|
|
@@ -200,9 +200,14 @@ installPKCS11(char *dirPath, char *dbTyp
|
|
|
|
/* don't call this if you have NSS initialized!!, use SECMOD_AddModule
|
|
* or SECMOD_AddUserModule instead */
|
|
+
|
|
+ /* Ignore this missing in the header for gcc14 */
|
|
+#pragma GCC diagnostic push
|
|
+#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
|
|
rc = (char **) NSC_ModuleDBFunc(type == Install ?
|
|
SECMOD_MODULE_DB_FUNCTION_ADD :
|
|
SECMOD_MODULE_DB_FUNCTION_DEL, paramString, module);
|
|
+#pragma GCC diagnostic pop
|
|
if (verbose) {
|
|
fprintf(stderr, "Install \"%s\" in %s : %s\n", module, dirPath,
|
|
rc ? *rc : "Fail" );
|