Commit 0fe15003 authored by Tim Rühsen's avatar Tim Rühsen

Add compiler-suggested function attributes

parent a09310de
......@@ -19,7 +19,7 @@
#include <idn2.h>
int
int G_GNUC_IDN2_ATTRIBUTE_CONST
main (void)
{
int i, failed = 0;
......
......@@ -383,7 +383,7 @@ ucs4print (const uint32_t * str, size_t len)
printf ("\n");
}
static size_t
static size_t G_GNUC_IDN2_ATTRIBUTE_PURE
_u32_strlen(const uint32_t *s)
{
const uint32_t *e;
......@@ -394,7 +394,7 @@ _u32_strlen(const uint32_t *s)
return e - s;
}
static size_t
static size_t G_GNUC_IDN2_ATTRIBUTE_PURE
_u32_strcmp(const uint32_t *s1, const uint32_t *s2)
{
while (*s1 && *s2 && *s1 == *s2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment