【发布时间】:2010-09-07 03:54:22
【问题描述】:
跑步夹板
matt@stanley:~/cpfs$ splint -paramuse +gnuextensions cpfs.c
在这一行暂停:
__thread int cpfs_errno;
出现解析错误:
cpfs.c:127:13:解析错误:非函数声明:__thread: 诠释。 (有关解析错误的帮助,请参阅 splint -help parseerrors。) *** 无法继续。检查文档和漱口水没有提到__thread。然而,据称 Splint 支持的 __thread is part of the C99 spec(插入参考)。
这里发生了什么?如何让夹板识别__thread?
【问题讨论】:
-
我不知道夹板现在支持 C99。那是什么时候发生的?
-
2002 年的某个时候:lclint.cs.virginia.edu/release.html,“支持最多”:lclint.cs.virginia.edu/faq.html
-
我发誓我在六个月前查看了他们的网站,它说它不支持 C99 结构。
标签: c linux gcc splint thread-local-storage