Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wilkins <Jason.A.Wilkins@gmail.com>2014-06-27 14:59:31 +0400
committerJason Wilkins <Jason.A.Wilkins@gmail.com>2014-06-27 15:02:59 +0400
commit9bcb2e76034f130b2acfbd7bea1f0a92abcf1310 (patch)
tree03b1f3b0b27ee54a6e21974d349f6b1a2a500c9e /source/blender/blenlib/intern/BLI_dynstr.c
parentb97d3bc198244d88d71b5e514af6b4c039eec584 (diff)
warning fix: use of __restrict was inconsistent in BLI_dynstr between declaration and definition
Diffstat (limited to 'source/blender/blenlib/intern/BLI_dynstr.c')
-rw-r--r--source/blender/blenlib/intern/BLI_dynstr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/intern/BLI_dynstr.c b/source/blender/blenlib/intern/BLI_dynstr.c
index 5c9554203cb..8617132e988 100644
--- a/source/blender/blenlib/intern/BLI_dynstr.c
+++ b/source/blender/blenlib/intern/BLI_dynstr.c
@@ -88,7 +88,7 @@ DynStr *BLI_dynstr_new(void)
* \param ds The DynStr to append to.
* \param cstr The c-string to append.
*/
-void BLI_dynstr_append(DynStr *ds, const char *cstr)
+void BLI_dynstr_append(DynStr *__restrict ds, const char *cstr)
{
DynStrElem *dse = malloc(sizeof(*dse));
int cstrlen = strlen(cstr);
@@ -112,7 +112,7 @@ void BLI_dynstr_append(DynStr *ds, const char *cstr)
* \param cstr The c-string to append.
* \param len The maximum length of the c-string to copy.
*/
-void BLI_dynstr_nappend(DynStr *ds, const char *cstr, int len)
+void BLI_dynstr_nappend(DynStr *__restrict ds, const char *cstr, int len)
{
DynStrElem *dse = malloc(sizeof(*dse));
int cstrlen = BLI_strnlen(cstr, len);
@@ -130,7 +130,7 @@ void BLI_dynstr_nappend(DynStr *ds, const char *cstr, int len)
ds->curlen += cstrlen;
}
-void BLI_dynstr_vappendf(DynStr *ds, const char *format, va_list args)
+void BLI_dynstr_vappendf(DynStr *__restrict ds, const char *__restrict format, va_list args)
{
char *message, fixedmessage[256];
int len = sizeof(fixedmessage);
@@ -189,7 +189,7 @@ void BLI_dynstr_vappendf(DynStr *ds, const char *format, va_list args)
* \param ds The DynStr to append to.
* \param format The printf format string to use.
*/
-void BLI_dynstr_appendf(DynStr *ds, const char *format, ...)
+void BLI_dynstr_appendf(DynStr *__restrict ds, const char *__restrict format, ...)
{
va_list args;
char *message, fixedmessage[256];
@@ -264,7 +264,7 @@ int BLI_dynstr_get_len(DynStr *ds)
* \param ds The DynStr of interest.
* \param str The string to fill.
*/
-void BLI_dynstr_get_cstring_ex(DynStr *ds, char *rets)
+void BLI_dynstr_get_cstring_ex(DynStr *__restrict ds, char *__restrict rets)
{
char *s;
DynStrElem *dse;