Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit292e4c6

Browse files
committed
Some of our port-specific dynloader implementations are careful to
define pg_dlsym() as returning a PGFunction pointer, not just anypointer-to-function. But many are not. Suppress compiler warningson platforms that aren't careful by inserting explicit casts at thetwo call sites that didn't have a cast already. Per Stefan.
1 parent706754c commit292e4c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/utils/fmgr/dfmgr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.94 2007/02/07 00:52:35 petere Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.95 2007/07/12 21:13:27 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -114,7 +114,7 @@ load_external_function(char *filename, char *funcname,
114114
*filehandle=lib_handle;
115115

116116
/* Look up the function within the library */
117-
retval=pg_dlsym(lib_handle,funcname);
117+
retval=(PGFunction)pg_dlsym(lib_handle,funcname);
118118

119119
if (retval==NULL&&signalNotFound)
120120
ereport(ERROR,
@@ -162,7 +162,7 @@ load_file(const char *filename, bool restricted)
162162
PGFunction
163163
lookup_external_function(void*filehandle,char*funcname)
164164
{
165-
returnpg_dlsym(filehandle,funcname);
165+
return(PGFunction)pg_dlsym(filehandle,funcname);
166166
}
167167

168168

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp