[liboping] Liboping 1.6.0: oping.c:338: warning: 'prec' may be used uninitialized in this function

James Bromberger james at rcpt.to
Wed Feb 16 10:23:27 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
On 16/02/2011 4:53 PM, Florian Forster wrote:
> Hi James,
>
> On Wed, Feb 16, 2011 at 12:07:38PM +0800, James Bromberger wrote:
>> oping.c: In function 'main':
>> oping.c:338: warning: 'prec' may be used uninitialized in this function
>> oping.c:337: warning: 'class' may be used uninitialized in this function
>> make[3]: *** [oping.o] Error 1
>
> your version of GCC doesn't notice that one branch of the code will quit
> the program using exit(3). It therefore thinks that it is possible that
> those two variables are used without initialization afterwards.
>
> I've fixed this in the Git repository [0] and will package an updated
> version soon. Thanks for reporting this problem!
 
Yay! Multo grazie...
 
GCC version is:
 
    gcc -v
    Using built-in specs.
    Target: x86_64-redhat-linux
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=x86_64-redhat-linux
    Thread model: posix
    gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
 
 
 
>
>
>> I tried to compiled the git sources, and when running autoconf, got:
>>
>> # autoconf
>> configure.ac:4: error: possibly undefined macro: AM_INIT_AUTOMAKE
>
> You need a couple more commands to generate the entire build system.
> It's probably easiest to use "autoreconf -fi" which should do all that
> needs to be done.
Ah, again, thank you. I have updated to current git as of a few seconds
ago, and re-run the process. Look like it has all run through cleanly.
 
 
Glad to be of help.
 
 James
 
- -- 
Mobile: +61 422 166 708, Email: james_AT_rcpt.to
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
iQIcBAEBAgAGBQJNW5d7AAoJECTtPEYG6LlxT/0P/3KX+p4eUUZxHPYyHsescR0n
HNuALlUBoNmSd88Ol3CVZZZh16C9LprgPJByQwSwt5UdZ0y9hG32YIzh48mdPykb
WCt15k4ZeA9p4KdHaijJMjGjiwd2fF6iqxccAYt7i+7iQjQNm3nEzhW2TYgRWEqt
W+CbIc5ann2q3n3kiHaeem8+LkFIWOor6fR7BlYCbHE+7u5TTVmfhc7LkIKCT8Zl
3BjFxWZqmqlMUJohhdzyr7Mu7wQxzEiXtbMocrfccmr058bE7gJUlQbFrEqKZ3iV
oLD+UXi+GnlRnUDaTCLISzCo8e/QLhi8BrcsnVnG70YkEFHbzJiccOgZq2pX2bJi
XcEXSnQ/bSLMOwKbiwHSyxWfOyYiJ9aJn8GL0cftqd5YqpoDNZknmExziYXmkVII
1fkDgR8kOhldiAnndV1XJNlZjfB1pEurzjw4MKgxNhVmzegAr1MLl/7R/KhjLOLG
BR72vWCErxsCKdECDSJtWJjB51L7ZUNHa8U3mLTzAcIIM235JNflNGJ/wTXc317N
6Smh+nVuDfabWcc21fXv0cqQWtZiPQy7l3IuhBx/C0WBQ7v3n4GoaTV7UXihDRMY
kQe0e8V2o6laa9auDS32up5tXFK5NzfF+KBksRGRNzYSmA6d59i+MdL/b2qFzwEm
fdgg9TuoS5GTo1abdelo
=1IHd
-----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/liboping/attachments/20110216/b4a4ab2a/attachment.htm>


More information about the liboping mailing list