Compiler errors.

Marcel Holtmann marcel at holtmann.org
Mon Jul 13 04:26:40 PDT 2009


Hi Marko,

> with the latest oFono git version I'm getting the following compiler
> errors when using gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3.
> 
> ----
> 
> gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../src
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -g -O2 -Werror
> -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
> -Wdeclaration-after-statement -Wmissing-declarations -Wredundant-decls
> -Wcast-align -MT smsutil.o -MD -MP -MF .deps/smsutil.Tpo -c -o smsutil.o
> `test -f '../src/smsutil.c' || echo './'`../src/smsutil.c
> cc1: warnings being treated as errors
> ../src/smsutil.c: In function ‘sms_extract_common’:
> ../src/smsutil.c:1442: error: ‘dcs’ may be used uninitialized in this
> function
> ../src/smsutil.c:1441: error: ‘udhi’ may be used uninitialized in this
> function

I didn't see them when building the release, but some distro compilers
are a different.

Denis, care to fix these please.

Regards

Marcel




More information about the ofono mailing list