Compile warnings on openSUSE

Issue #1047 open
Ferdinand Thiessen created an issue

When building on openSUSE there are some warnings which might be helpful for you:

[  766s] I: Program causes undefined operation
[  766s]    (likely same variable used twiceand post/pre incremented in the same expression).
[  766s]    e.g. x = x++; Split it in two operations.
[  766s] W: caesaria sequence-point /home/abuild/rpmbuild/BUILD/caesaria/dep/aes/aeskey.cpp:371, 372, 417, 418, 419, 420
[  766s] 
[  766s] I: Program is likely to break with new gcc. Try -fno-strict-aliasing.
[  766s] W: caesaria strict-aliasing-punning /home/abuild/rpmbuild/BUILD/caesaria/source/gui/editbox.cpp:288

Comments (3)

  1. dalerank repo owner

    Sorry man, i cant fix first warning because dont understand what it do :( For second will fix it

  2. Ferdinand Thiessen reporter

    Also now there are two new different warnings, one might be a serious overflow error:

    [  723s] I: A function overflows or underflows an array access. This could be a real error,
    [  723s]    but occasionaly this condition is also misdetected due to loop unrolling or strange pointer
    [  723s]    handling. So this is warning only, please review.
    [  723s] W: caesaria arraysubscript /home/abuild/rpmbuild/BUILD/caesaria-0.5+git20160627/source/objects/fort.cpp:49
    
    [  723s] I: Program is likely to break with new gcc. Try -fno-strict-aliasing.
    [  723s] W: caesaria strict-aliasing-punning /home/abuild/rpmbuild/BUILD/caesaria-0.5+git20160627/source/gui/editbox.cpp:305
    
  3. Log in to comment