Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cb695ae

Browse files
committed
Silence compiler warning.
Not all compilers understand that the elog(ERROR) never returns. David Rowley
1 parent f1169ab commit cb695ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/libpq/crypt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ encrypt_password(PasswordType target_type, const char *role,
160160
* handle every combination of source and target password types.
161161
*/
162162
elog(ERROR, "cannot encrypt password to requested type");
163+
return NULL; /* keep compiler quiet */
163164
}
164165

165166
/*

0 commit comments

Comments
 (0)