Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "mx_util: Avoid false maybe-uninitialized warnings"
This reverts commit 83531e8.

There will be another solution in the following commit.
  • Loading branch information
donald committed May 9, 2022
1 parent fc872f1 commit 567844d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions mx_util.c
Expand Up @@ -356,7 +356,7 @@ int mx_strtoll(char *str, signed long long int *to)

int mx_strtoui(char *str, unsigned int *to)
{
unsigned long int ul = 0; /* avoid false maybe-uninitialized warning */
unsigned long int ul;
int res;

assert(str);
Expand All @@ -376,7 +376,7 @@ int mx_strtoui(char *str, unsigned int *to)

int mx_strtou8(char *str, uint8_t *to)
{
unsigned long int ul = 0; /* avoid false maybe-uninitialized warning */
unsigned long int ul;
int res;

assert(str);
Expand All @@ -396,7 +396,7 @@ int mx_strtou8(char *str, uint8_t *to)

int mx_strtou16(char *str, uint16_t *to)
{
unsigned long int ul = 0; /* avoid false maybe-uninitialized warning */
unsigned long int ul;
int res;

assert(str);
Expand All @@ -416,7 +416,7 @@ int mx_strtou16(char *str, uint16_t *to)

int mx_strtou32(char *str, uint32_t *to)
{
unsigned long int ul = 0; /* avoid false maybe-uninitialized warning */
unsigned long int ul;
int res;

assert(str);
Expand All @@ -436,7 +436,7 @@ int mx_strtou32(char *str, uint32_t *to)

int mx_strtou64(char *str, uint64_t *to)
{
unsigned long long int ull = 0; /* avoid false maybe-uninitialized warning */;
unsigned long long int ull;
int res;

assert(str);
Expand All @@ -458,7 +458,7 @@ int mx_strtou64(char *str, uint64_t *to)

int mx_strtoi(char *str, signed int *to)
{
signed long int l = 0; /* avoid false maybe-uninitialized warning */
signed long int l;
int res;

assert(str);
Expand All @@ -478,7 +478,7 @@ int mx_strtoi(char *str, signed int *to)

int mx_strtoi8(char *str, int8_t *to)
{
signed long int l = 0; /* avoid false maybe-uninitialized warning */
signed long int l;
int res;

assert(str);
Expand All @@ -498,7 +498,7 @@ int mx_strtoi8(char *str, int8_t *to)

int mx_strtoi16(char *str, int16_t *to)
{
signed long int l = 0; /* avoid false maybe-uninitialized warning */
signed long int l;
int res;

assert(str);
Expand All @@ -518,7 +518,7 @@ int mx_strtoi16(char *str, int16_t *to)

int mx_strtoi32(char *str, int32_t *to)
{
signed long int l = 0; /* avoid false maybe-uninitialized warning */
signed long int l;
int res;

assert(str);
Expand All @@ -538,7 +538,7 @@ int mx_strtoi32(char *str, int32_t *to)

int mx_strtoi64(char *str, int64_t *to)
{
signed long long int ll = 0; /* avoid false maybe-uninitialized warning */
signed long long int ll;
int res;

assert(str);
Expand Down Expand Up @@ -796,7 +796,7 @@ int mx_read_first_line_from_file(char *fname, char **line)

int mx_strscan_ull(char **str, unsigned long long int *to)
{
unsigned long long int l = 0; /* avoid false maybe-uninitialized warning */;
unsigned long long int l;
char *s;
char *p;
char o = 0;
Expand Down Expand Up @@ -827,7 +827,7 @@ int mx_strscan_ull(char **str, unsigned long long int *to)

int mx_strscan_ll(char **str, long long int *to)
{
long long int l = 0; /* avoid false maybe-uninitialized warning */;
long long int l;
char *s;
char *p;
char o = 0;
Expand Down

0 comments on commit 567844d

Please sign in to comment.