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

Commit6855820

Browse files
committed
c.h:
#define StrNCpy(dst,src,len) \(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : \NULL,(void)(dst)) ^^^^^^ - to avoid "value computed is not used" from gccin ma-a-any places (should to fix thouse places instead, but ...time)config.h.in:/* * TBL_FREE_CMD_MEMORY: free memory allocated for an user query inside * transaction block after this query is done. */#define TBL_FREE_CMD_MEMORY- this is default now.
1 parent9b3d932 commit6855820

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

‎src/include/c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: c.h,v 1.24 1997/10/25 02:14:22 momjian Exp $
10+
* $Id: c.h,v 1.25 1997/10/27 12:07:10 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -691,7 +691,7 @@ typedef struct Exception
691691
*/
692692
/* we do this so if the macro is used in an if action, it will work */
693693
#defineStrNCpy(dst,src,len)\
694-
(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : NULL,(dst))
694+
(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : NULL,(void)(dst))
695695

696696
/* Get a bit mask of the bits set in non-int32 aligned addresses */
697697
#defineINT_ALIGN_MASK (sizeof(int32) - 1)

‎src/include/config.h.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,4 +315,10 @@
315315
*/
316316
#defineBTREE_VERSION_1
317317

318+
/*
319+
* TBL_FREE_CMD_MEMORY: free memory allocated for an user query inside
320+
* transaction block after this query is done.
321+
*/
322+
#defineTBL_FREE_CMD_MEMORY
323+
318324
#endif/* CONFIG_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp