fix -Wmaybe-uninitialized warning.

pull/1342/head
wodji 2015-09-21 19:50:12 +01:00
parent 37ae865a61
commit ec9f18f552
1 changed files with 1 additions and 0 deletions

View File

@ -201,6 +201,7 @@ void serial_format(serial_t *obj, int data_bits, SerialParity parity, int stop_b
case ParityForced1: parity_enable = 1; parity_select = 2; break; case ParityForced1: parity_enable = 1; parity_select = 2; break;
case ParityForced0: parity_enable = 1; parity_select = 3; break; case ParityForced0: parity_enable = 1; parity_select = 3; break;
default: default:
parity_enable = 0, parity_select = 0;
break; break;
} }