Opened 10 years ago

Closed 10 years ago

#619 closed bug (fixed)

severe compiler warnings

Reported by: hasufell@… Owned by: somebody
Priority: minor Milestone: 4-1-0 and higher
Component: singular-libs Version: 3-1-6
Keywords: warnings, compiler Cc: sci-mathematics@…

Description

QA Notice: Package triggers severe warnings which indicate that it

may exhibit random runtime failures.

countedref.cc:110:91: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ndbm.cc:288:36: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

QA Notice: Package triggers severe warnings which indicate that it

may exhibit random runtime failures.

semaphore.c:45:3: warning: implicit declaration of function ‘getpid’ [-Wimplicit-function-declaration] semaphore.c:94:3: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]

QA Notice: Package triggers severe warnings which indicate that it

may exhibit random runtime failures.

table.h:291:1: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] table.h:672:1: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] table.h:775:1: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] table.h:836:1: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] table.h:1173:1: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] table.h:1211:1: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] table.h:1227:1: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]

Change History (1)

comment:1 Changed 10 years ago by hannes

Milestone: 3-2-0 and higher4-1-0 and higher
Priority: majorminor
Resolution: fixed
Status: newclosed

Please use the current sources(*), we do not have the time to fix any warnings for the old versions 3-1-x. the mentioned warnings:

  • ndbm.cc: only in debug version
  • countedref.cc and ndbm.cc: could not reproduce it
  • semaphore.c: fixed
  • table.h: fixed a long time ago

(*) current versions are: 4-0-0 from ftp://www.mathematik.uni-kl.de/pub/Math/Singular/src/4-0-0/singular-4.0.0.p3.tar.gz

or branch spielwiese from https://github.com/Singular/Sources

Note: See TracTickets for help on using tickets.