Ticket UUID: | 2979572 | |||
Title: | compiler warnings threadSpCmd.c | |||
Type: | Bug | Version: | None | |
Submitter: | dgp | Created on: | 2010-03-30 19:01:37 | |
Subsystem: | 80. Thread Package | Assigned To: | vasiljevic | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2010-03-31 15:53:18 | |
Resolution: | None | Closed By: | vasiljevic | |
Closed on: | 2010-03-31 08:53:18 | |||
Description: |
On the current HEAD: gcc -DPACKAGE_NAME=\"thread\" -DPACKAGE_TARNAME=\"thread\" -DPACKAGE_VERSION=\"2.6.5\" -DPACKAGE_STRING=\"thread\ 2.6.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -I"/home/dgp/cvs/tcl-only/generic" -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c` -o threadSpCmd.o /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c: In function ‘ThreadRWMutexObjCmd’: /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c:468: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c: In function ‘SpMutexLock’: /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c:1129: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c:1132: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c: In function ‘SpMutexUnlock’: /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c:1161: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c:1164: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c: In function ‘SpMutexFinalize’: /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c:1203: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c:1206: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/dgp/cvs/tcl-only/pkgs/thread2.6.5/generic/threadSpCmd.c:1209: warning: dereferencing type-punned pointer will break strict-aliasing rules Would be good to silence these warnings before a release of Thread 2.6.6 | |||
User Comments: |
vasiljevic added on 2010-03-31 15:53:18:
allow_comments - 1 Applied patch. vasiljevic added on 2010-03-31 15:52:44: Applied. dgp added on 2010-03-31 05:35:23: patch attached dgp added on 2010-03-31 05:35:00: File Added - 368875: 2979572.patch vasiljevic added on 2010-03-31 02:26:17: Hm.... this new interface isn't really intuitive.... Did you get my comment/question about the platform where you compile? vasiljevic added on 2010-03-31 02:20:15: Sure. But on what box do you compile? I use Mac and get no such warnings! Zoran |
Attachments:
- 2979572.patch [download] added by dgp on 2010-03-31 05:35:00. [details]