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

Commitb3ab9b4

Browse files
committed
Suppress compiler warning in non-threaded build.
1 parent6cbb235 commitb3ab9b4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎src/interfaces/ecpg/ecpglib/descriptor.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* dynamic SQL support routines
22
*
3-
* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.26 2007/10/0311:11:12 meskes Exp $
3+
* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.27 2007/10/0316:03:25 tgl Exp $
44
*/
55

66
#definePOSTGRES_ECPG_INTERNAL
@@ -16,13 +16,14 @@
1616
#include"sql3types.h"
1717

1818
staticvoiddescriptor_free(structdescriptor*desc);
19-
staticvoiddescriptor_deallocate_all(structdescriptor*list);
2019

2120
/* We manage descriptors separately for each thread. */
2221
#ifdefENABLE_THREAD_SAFETY
2322
staticpthread_key_tdescriptor_key;
2423
staticpthread_once_tdescriptor_once=PTHREAD_ONCE_INIT;
2524

25+
staticvoiddescriptor_deallocate_all(structdescriptor*list);
26+
2627
staticvoid
2728
descriptor_destructor(void*arg)
2829
{
@@ -653,6 +654,8 @@ ECPGdeallocate_desc(int line, const char *name)
653654
return false;
654655
}
655656

657+
#ifdefENABLE_THREAD_SAFETY
658+
656659
/* Deallocate all descriptors in the list */
657660
staticvoid
658661
descriptor_deallocate_all(structdescriptor*list)
@@ -665,6 +668,8 @@ descriptor_deallocate_all(struct descriptor *list)
665668
}
666669
}
667670

671+
#endif/* ENABLE_THREAD_SAFETY */
672+
668673
bool
669674
ECPGallocate_desc(intline,constchar*name)
670675
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp