projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1169ab
)
Silence compiler warning.
author
Heikki Linnakangas
Thu, 2 Feb 2017 08:40:56 +0000
(10:40 +0200)
committer
Heikki Linnakangas
Thu, 2 Feb 2017 08:42:37 +0000
(10:42 +0200)
Not all compilers understand that the elog(ERROR) never returns.
David Rowley
src/backend/libpq/crypt.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/libpq/crypt.c
b/src/backend/libpq/crypt.c
index 893ce6e967b1d4d9a9f47550ff39495573c101b4..e7dd212355dd399c536d171736a2c11bbc0ff957 100644
(file)
--- a/
src/backend/libpq/crypt.c
+++ b/
src/backend/libpq/crypt.c
@@
-160,6
+160,7
@@
encrypt_password(PasswordType target_type, const char *role,
* handle every combination of source and target password types.
*/
elog(ERROR, "cannot encrypt password to requested type");
+ return NULL; /* keep compiler quiet */
}
/*