diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-10 16:00:34 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-10 16:00:34 +0200 |
commit | 58f8347e84d2820cada64c513bb0f2b81ecd494a (patch) | |
tree | 758f5f2241c384b8d0e8ce349498784515ae5607 /doc/info/mds.texinfo | |
parent | Add -l flags for mds-libinput (diff) | |
download | mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.gz mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.bz2 mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.xz |
Fix new GCC warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | doc/info/mds.texinfo | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/info/mds.texinfo b/doc/info/mds.texinfo index 92ed37b..d094ecf 100644 --- a/doc/info/mds.texinfo +++ b/doc/info/mds.texinfo @@ -6454,6 +6454,16 @@ duplicate is stored in the variable @code{var}. If @code{original} is @code{NULL}, @code{var} is set to @code{NULL} and zero is returned. +@item @code{xstrdup_nn} [(@code{char* var, const char* original}) @arrow{} @code{int}] +@fnindex @code{xstrdup} +@cpindex Memory management +Wrapper for @code{strdup} that returns zero on and +only on success. @code{original} is duplicate and the +duplicate is stored in the variable @code{var}. +@code{original} must not be @code{NULL}. This macro +was added because GCC 6.1.1 warns if @code{xstrdup} +is used and @code{original} is known not to be @code{NULL}. + @item @code{xmemdup} [(@code{void* var, const void* original, size_t elements, type}) @arrow{} @code{int}] @fnindex @code{xmemdup} @cpindex Memory management |