Some unit test warnings addressed. (#515)

* Removed purple warnings from unit test compilation.

* "Fixed const corectness bug. Added more warning fixes."

* Fixed warning issue.

* Removed null checking and (char*) casting.

* Changed sizeof parameter to variable from data structure.
This commit is contained in:
Christopher LaChance
2017-11-29 15:35:16 -06:00
committed by GitHub
parent 0b9fbe1762
commit 6184aa6cd9
21 changed files with 60 additions and 66 deletions

View File

@ -55,8 +55,8 @@ class ClassOfEverything {
float * fap[4] ; /* kg blah */
float ** fpp ; /* kg blah */
float f_rad ; /* r float test value */
double d_deg ; /* d blah */
float f_rad ; /* rad float test value */
double d_deg ; /* degree blah */
char c ; /* -- blah */
char ca[20] ; /* -- blah */

View File

@ -16,8 +16,8 @@ typedef struct {
float f[3] ; /* m/s2 -- */
double d[3] ; /* kg*m/s2 -- */
unsigned short us[3] ; /* N -- */
unsigned int ui[3] ; /* cnt -- */
unsigned long ul[3] ; /* v -- */
unsigned int ui[3] ; /* count -- */
unsigned long ul[3] ; /* V -- */
long long ll[3] ; /* K -- */
} STRUCT_1 ;