English 中文(简体)
/usr/include/arpa/inet.h:35:27: Parse Error in Splint
原标题:/usr/include/arpa/inet.h:35:27: Parse Error in Splint

在用int子检查我的法典时,我只谈一个问题。 首先,在POSIXLIB上出现错误。 因此,我以“+posixlib”为标题。

splint mss_client_main.c +posixlib -I ../include/

但有以下错误:

页: 1

/usr/include/arpa/inet.h:35:27: Parse Error. (For help on parse errors, see
               splint -help parseerrors.)
*** Cannot continue.

如何解决这一错误?

最佳回答

贵国法典是否编纂?

这种错误通常是指前面的线:

#include "inet.h"

存在错误,如失踪或多余的半殖民地、缺乏亲子关系的宏观或其他一些容易对mis的侵犯。 汇编者将几乎总是赶上这一点。

If your code compiles, two things come to mind:

Some static code checkers like splint don t like system headers. Set your configuration such that system directories are ignored. Check the man or info pages for the correct syntax.

不太可能:inet.h 或其中一部分是腐败。 检查不寻常,但很简单。 重新安排相关的一揽子方案将纠正这种情况。

问题回答

暂无回答




相关问题
Why doesn t splint parse curl/curlbuild.h?

I wrote a fornol.c program that uses the curl library, and therefore includes the following: #include <curl/curl.h> I want to run splint on my program, but this is the error I get: $ splint ...

PTHREAD_COND_INITIALIZER vs Splint

I have the following code static pthread_mutex_t watchdogMutex = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t watchdogCond = PTHREAD_COND_INITIALIZER; and I get the following errors/warnings ...

splint debugging parse error

This is my first time using splint (from Ubuntu repositories) and I immediately got hit by a WTF. The error message: nightcracker@nightcracker-pc:~/c/brainfuck$ splint brainfuck.c Splint 3.1.2 --- 03 ...

Splint barfs on __thread, which is part of C99

Running splint matt@stanley:~/cpfs$ splint -paramuse +gnuextensions cpfs.c Halts on this line: __thread int cpfs_errno; With a parse error: cpfs.c:127:13: Parse Error: Non-function declaration: ...

splint failing on code that includes complex.h

I m trying to run splint on a C source that includes complex.h from the standard C library to support complex arithmetic. Unfortunately, splint fails with the following error. Splint 3.1.2 --- 03 ...

splint whole program with a complex build process

I want to run splints whole program analysis on my system. However the system is quite large and different parts are compiled with different compiler defines and include paths. I can see how to convey ...

Removing null warnings in Splint

I have been trying out Splint with a C program I recently wrote and trying to understand and remove the warnings it gives. One I understand but can t understand how to remove it comes from the ...

热门标签