| Ticket UUID: | 5613c718c2a648f85bac730aacb7db52250d6101 | |||
| Title: | Fixing compiler-warnings in C-code | |||
| Type: | Bug | Version: | 1.17 | |
| Submitter: | mi | Created on: | 2015-05-28 01:34:50 | |
| Subsystem: | Build System & Testing | Assigned To: | aku | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Open | Last Modified: | 2015-05-28 13:15:46 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
When using critcl, a number of warnings -- and bugs -- surface. Especially, when a "picky" compiler is in use -- such as clang, which is now the base "cc" on FreeBSD. The fixes fall into several broad categories:
| |||
| User Comments: |
mi added on 2015-05-28 13:15:46:
size_t should not a problem even on the ancient computers. For intptr_t, maybe, there is some kind of Tcl_Foo-equivalent? aku added on 2015-05-28 06:06:19: Applied patch into branch [<a href='timeline?r=tkt-5613c718c2-cwarnings&unhide'>tkt-5613c718c2-cwarnings</a>]. Missing the 'return' in "..._lstop". How embarrassing. Regarding C99 in 2015, I will check what the native cc's of AIX, HPUX, and Solaris (2.8, 2.10) will say about the patched code. I suspect that at least one of these will choke on the size_t and intptr_t types, being more C89 than C99. | |||
Attachments:
- patch-warnings [download] added by mi on 2015-05-28 01:35:58. [details]
