Browse Source

clear compiler warning

Richard Dobson 3 months ago
parent
commit
476271bef5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dev/pvxio2/pvfileio.c

+ 1 - 0
dev/pvxio2/pvfileio.c

@@ -353,6 +353,7 @@ static void prepare_pvfmt(WAVEFORMATEX *pfmt,DWORD chans, DWORD srate,
     pfmt->wFormatTag        = WAVE_FORMAT_EXTENSIBLE;
     pfmt->nChannels         = (WORD) chans;
     pfmt->nSamplesPerSec    = srate;
+    pfmt->nBlockAlign       = 0;  /* decl to please gcc */
     switch(stype){
     case(STYPE_16):
         pfmt->wBitsPerSample = (WORD)16;