Skip to content

Commit 6855820

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 gcc in 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 parent 9b3d932 commit 6855820

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
#define StrNCpy(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
#define INT_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
#define BTREE_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+
#define TBL_FREE_CMD_MEMORY
323+
318324
#endif /* CONFIG_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy