Fix a couple more optimization warnings

This commit is contained in:
Bill Currie 2020-02-11 15:59:12 +09:00
parent 3208fce42e
commit 6e96b91aa1
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@
#include "util.h"
static int
static int __attribute__((const))
count_bits (uint32_t val)
{
int bits = 0;

View file

@ -5,7 +5,7 @@
typedef struct strset_s strset_t;
int count_strings (const char * const *str);
int count_strings (const char * const *str) __attribute__((const));
void merge_strings (const char **out, const char * const *in1,
const char * const *in2);
void prune_strings (strset_t *strset, const char **strings, uint32_t *count);