aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/kdb/db2/libdb2/hash
diff options
context:
space:
mode:
authorSteffen Kieß <steffen.kiess@cis.iti.uni-stuttgart.de>2024-02-13 18:39:27 +0100
committerGreg Hudson <ghudson@mit.edu>2024-02-13 17:12:32 -0500
commit3ae9244cd021a75eba909d872a92c25db490714d (patch)
tree7ce5bbbad05458875b8cd3a59828d99d3fb30d79 /src/plugins/kdb/db2/libdb2/hash
parentf5ad07bd3b1242ab75dcbc91627bd96aaeec87cd (diff)
downloadkrb5-3ae9244cd021a75eba909d872a92c25db490714d.zip
krb5-3ae9244cd021a75eba909d872a92c25db490714d.tar.gz
krb5-3ae9244cd021a75eba909d872a92c25db490714d.tar.bz2
Avoid strict-prototype compiler errors
Commit 4b9d7f7c107f01a61600fddcd8cde3812d0366a2 added the -Werror=strict-prototypes parameter to the build process, but left behind 28 function definitions using "()" instead of "(void)". Most of these definitions could not cause compiler errors for various reasons (such as an accompanying prototype), but a few could cause errors in gcc depending on the build configuration. For consistency and safety, add "(void)" to all 28 definitions. [ghudson@mit.edu: rewrote commit message]
Diffstat (limited to 'src/plugins/kdb/db2/libdb2/hash')
-rw-r--r--src/plugins/kdb/db2/libdb2/hash/dbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/kdb/db2/libdb2/hash/dbm.c b/src/plugins/kdb/db2/libdb2/hash/dbm.c
index 2dca256..e643634 100644
--- a/src/plugins/kdb/db2/libdb2/hash/dbm.c
+++ b/src/plugins/kdb/db2/libdb2/hash/dbm.c
@@ -143,7 +143,7 @@ kdb2_store(datum key, datum dat)
}
static void
-no_open_db()
+no_open_db(void)
{
(void)fprintf(stderr, "dbm: no open database.\n");
}