Skip to content

Commit

Permalink
Fix various compiler warnings reported by clang 16
Browse files Browse the repository at this point in the history
  • Loading branch information
mywave82 committed Aug 5, 2023
1 parent 2dad917 commit f30bafa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion filesel/pfilesel.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ int fsReadDir (struct modlist *ml, struct ocpdir_t *dir, const char *mask, unsig
#ifndef FNM_CASEFOLD
token.mask = strupr(strdup (mask));
#else
token.mask = mask;
token.mask = (char *)mask;
#endif
token.opt = opt;

Expand Down
4 changes: 3 additions & 1 deletion plugins/freverb.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static float *co1dline; // compr1 analyzer delay line
static int co1dllen, co1dlpos; // compr1 dl length/pos
static int co1amode; // compr1 analyzer mode (0:rms, 1:peak)
static float co1mean,co1invlen;
static float co1atten, co1attack, co1decay, co1thres, co1cprv;
static float co1atten, /*co1attack, co1decay,*/ co1thres, co1cprv;

static float gainsf[6] = { 0.966384599, 0.958186359, 0.953783929, 0.950933178, 0.994260075, 0.998044717};
static const float ldelays[6] = {29.68253968, 37.07482993, 41.06575964, 43.67346939, 4.98866213, 1.67800453 };
Expand Down Expand Up @@ -201,8 +201,10 @@ static void fReverb_init (int rate)
co1mean = 0;

co1atten=0;
/*
co1attack=0.0001;
co1decay=0.0001;
*/
co1thres=0;
co1cprv=1;

Expand Down
4 changes: 3 additions & 1 deletion plugins/ireverb.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int32_t *co1dline; // compr1 analyzer delay line
static int co1dllen, co1dlpos; // compr1 dl length/pos
static int co1amode; // compr1 analyzer mode (0:rms, 1:peak)
static int32_t co1mean, co1invlen;
static int32_t co1atten, co1attack, co1decay, co1thres, co1cprv;
static int32_t co1atten, /*co1attack, co1decay,*/ co1thres, co1cprv;

static int32_t gainsf[6] = {63333, 62796, 62507, 62320, 65160, 65408}; /* s15.16 */
static const float ldelays[6] = {29.68253968, 37.07482993, 41.06575964, 43.67346939, 4.98866213, 1.67800453};
Expand Down Expand Up @@ -208,8 +208,10 @@ static void iReverb_init (int rate)
co1mean = 0;

co1atten = 0;
/*
co1attack = 0.0001;
co1decay = 0.0001;
*/
co1thres = 0;
co1cprv = 1;

Expand Down

0 comments on commit f30bafa

Please sign in to comment.