gcc 常见的编译警告与错误(按字母顺序排列)_第1页
gcc 常见的编译警告与错误(按字母顺序排列)_第2页
gcc 常见的编译警告与错误(按字母顺序排列)_第3页
gcc 常见的编译警告与错误(按字母顺序排列)_第4页
gcc 常见的编译警告与错误(按字母顺序排列)_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

本文格式为Word版,下载可任意编辑——gcc常见的编译警告与错误(按字母顺序排列)characterconstanttoolongforitstype字符常量大小超出其类型

commaoperatorinoperandof#if#if操作数中出现逗号

comparisonbetweenpointerandintegerinteger与pointer比较

comparisonisalwaysfalseduetolimitedrangeofdatatype由于数据类型范围的限制,比较结果一直为假

comparisonisalwaystrueduetolimitedrangeofdatatype由于数据类型范围的限制,比较结果一直为真。

conversionfrom%sto%snotsupportedbyiconviconv不支持从%s到%s的转换

convertingescapesequencetoexecutioncharacterset将转义序列转换到执行字符集

convertingtoexecutioncharacterset转换到可执行文件的字符集

convertingUCNtoexecutioncharacterset将UCN转换到执行字符集

convertingUCNtosourcecharacterset将UCN转换到源字符集

couldnotdeterminedateandtime无法决定日期与时间

couldnotdeterminefiletimestamp无法决定文件的时间戳

CPParithmeticmustbeatleastaspreciseasatargetintCPP算术必需至少具有目标int的精度

CPPhalf-integernarrowerthanCPPcharacterCPP半整数短于CPP字符

CPPonthishostcannothandlewidecharacterconstantsover%lubits,butthetargetrequires%lubits

6

在此宿主机上,CPP不能处理长于%lu位的宽字符常量,但目标需要%lu位

cppchar_tmustbeanunsignedtypecppchar_t必需是无符号型

currentfileisolderthan%s当前文件早于%s

decimalfloatconstantsareaGCCextension十进制浮点常量是一个GCC扩展

detectedrecursionwhilstexpandingmacro\\%s\\展开宏%s时检测到递归

divisionbyzeroin#if#if中用零做除数

duplicatemacroparameter\\%s\\重复的宏参数“%s〞

embeddingadirectivewithinmacroargumentsisnotportable将一个指示嵌入宏参数中是不可移植的

emptycharacterconstant空的字符常量

emptyfilenamein#%s#%s中文件名为空

expectedexpressionbefore'else'else之前无表达式

exponenthasnodigits指数部分没有数字

extratokensatendof#%sdirective#%s指示的末尾有多余的标识符

failuretoconvert%sto%s无法从%s转换到%s

fixed-pointconstantsareaGCCextension定点常量是一个GCC扩展

7

floatingconstantinpreprocessorexpression浮点常量出现在预处理表达式中

function-likemacro\\%s\\mustbeusedwithargumentsintraditionalC类似函数的宏“%s〞在传统C中必需与参数一起使用

hexescapesequenceoutofrange16进制转义序列越界

hexadecimalfloatingconstantsrequireanexponent16进制浮点常量需要指数部分

identifier\\%s\\isaspecialoperatornameinC++标识符“%s〞是C++中的一个特别操作符

imaginaryconstantsareaGCCextension虚数常量是一个GCC扩展

imaginarynumberinpreprocessorexpression预处理表达式中出现虚数

impossibleoperator‘%u’不可能的操作‘%u’

In_cpp_valid_ucnbutnotaUCN

在_cpp_valid_ucn中但不是一个UCN

incompatibleimplicitdeclarationofbuilt-infunction'printf'与内置的printf函数隐式声明不兼容。

incompleteuniversalcharactername%.*s不完全的Unicode字符名%.*s

initializationdiscardsqualifiersfrompointertargettype初始化取消了指针目标类型的限定。

initializationfromincompatiblepointertype不兼容指针类型的初始化

integerconstantissolargethatitisunsigned整数常量太大,认定为unsigned

integerconstantistoolargeforitstype整数常量值超出其类型

8

integeroverflowinpreprocessorexpression预处理表达式中整数溢出

invalid#%sdirective无效的#%s指示

invalid#pragmaGCCpoisondirective无效的#pragmaGCCpoison指示

invalid#pragmapop_macrodirective无效的#pragmapop_macro指示

invalid#pragmapush_macrodirective无效的#pragmapush_macro指示

invalidbuilt-inmacro\\%s\\无效的内建宏“%s〞

invalidcharacter‘%c’inrawstringdelimiter原始字符串分隔符中有无效字符‘%c’

invaliddigit\\%c\\inbinaryconstant二进制常量中有无效数字“%c

invaliddigit\\%c\\inoctalconstant8进制常量中有非法字符“%c

invalidflag\\%s\\inlinedirectiveline指示中有无效的标记“%s

invalidhashtype%dincpp_macro_definition

cpp_macro_definition中有无效的散列类型%d

invalidprefix\\0b\\forfloatingconstant浮点常量的“0b前缀无效

invalidpreprocessingdirective#%s无效的预处理指示#%s

invalidstorageclassforfunction'XXXXXX'在文件的某个地方,丢失了一个大括号‘}’

invalidstringliteral,ignoringfinal‘\\\\’无效的字面字符串,忽略最终的‘\\\\’

9

invalidsuffix\\%.*s\\onfloatingconstant浮点常量的“%.*s后缀无效

invalidsuffix\\%.*s\\onintegerconstant整数常量的“%.*s后缀无效

invalidsuffix\\%.*s\\withhexadecimalfloatingconstant十六进制浮点常量的“%.*s后缀无效

invokingmacro%sargument%d:emptymacroargumentsareundefinedinISOC90andISOC++98

调用宏%s的参数%d:空的宏参数未被ISOC90和ISOC++98定义

ISOCdoesnotpermitnamedvariadicmacrosISOC不允许有名的可变参数宏

ISOC99requiresrestargumentstobeusedISOC99需要使用剩余的参数

ISOC99requireswhitespaceafterthemacronameISOC99要求宏名后必需有空白

linenumberoutofrange行号超出范围

lvaluerequiredasleftoperandofassignment左值问题

macro\\%s\\isnotused宏“%s〞未被使用

macro\\%s\\passed%uarguments,buttakesjust%u宏“%s〞传递了%u个参数,但只需要%u个

macro\\%s\\requires%uarguments,butonly%ugiven宏“%s需要%u个参数,但只给出了%u个

macroargument\\%s\\wouldbestringifiedintraditionalC宏参数“%s〞将在传统C中被字符串化

macronamesmustbeidentifiers宏名必需是标识符

10

macroparametersmustbecomma-separated宏参数必需由逗号隔开

missing‘(‘afterpredicate谓词后缺少‘(’

missing‘(‘inexpression表达式中缺少‘(’

missing‘)’after\\defined\\\“defined后出现‘)’

missing‘)’inexpression表达式中缺少‘)’

missing‘)’inmacroparameterlist在宏参数表中缺少‘)’

missing‘)’tocompleteanswer完整的答案缺少‘)’

missingbinaryoperatorbeforetoken\\%s\\标识符“%〞s前缺少二元运算符

missingexpressionbetween‘(‘and‘)’‘(’与‘)’之间缺少表达式

missingterminating%ccharacter缺少结尾的%c字符

missingterminating>character缺少结尾的>字符

missingwhitespaceafterthemacroname宏名后缺少空白

multi-charactercharacterconstant多字节字符常量

multi-linecomment多行解释

Multipleincludeguardsmaybeusefulfor:\\n多个防止重包含可能对其有用:\\n

11

noiconvimplementation,cannotconvertfrom%sto%s没有iconv的实现,无法从%s转换到%s

noincludepathinwhichtosearchfor%s没有包含路径可供探寻%s

nomacronamegivenin#%sdirective#%s指示中未给出宏名

nonewlineatendoffile在文件最终一行加上回车键

解释:在“RationalefortheC99standard〞一文中,有C99的相关信息:

Abackslashimmediatelybeforeanewlinehaslongbeenusedtocontinuestringliterals,aswellaspreprocessingcommandlines.IntheinterestofeasingmachinegenerationofC,andoftransportingcodetomachineswithrestrictivephysicallinelengths,theC89Committeegeneralizedthismechanismtopermitanytokentobecontinuedbyinterposingabackslash/newlinesequence.c/c++代码的每一行后面有一个“终止符〞,也就是newline。避免当被include的文件展开后,前一个文件的最终一行与后一个文件的第一行直接被连接成一行从而造成错误。

non-ISO-standardescapesequence,‘\\\\%c’非ISO标准的转义序列,‘\\\\%c’

nullcharacter(s)ignored忽略空字符

nullcharacter(s)preservedinliteral空字符将保存在字面字符串中

NULLdirectoryinfind_filefind_file中有NULL目录

octalescapesequenceoutofrange8进制转义序列越界

oneormorePCHfileswerefound,buttheywereinvalid找到一个或多个PCH文件,但它们是无效的

operator\\defined\\requiresanidentifier操作符“defined需要一个标识符

operator‘%s’hasnoleftoperand操作符‘%s’没有左操作数

12

operator‘%s’hasnorightoperand操作符‘%s’没有右操作数

passingargument1of'mes_read_time'discardsqualifiersfrompointertargettype12、

mes_函数第一个参数的传递,丢弃了指针目标类型限定。

parameternamemissing缺少形参名

passingargument1of'send'makespointerfromintegerwithoutacast函数send的第一个integer型参数没有强制转换为pointer型

pasting\\%s\\and\\%s\\doesnotgiveavalidpreprocessingtoken毗连“%s〞和“%s〞不能给出一个有效的预处理标识符

poisoningexistingmacro\\%s\\对已存在的宏“%s〞投毒

predicatemustbeanidentifier谓词必需是一个标识符

predicate’sanswerisempty谓词的答案为空

preprocessorarithmetichasmaximumprecisionof%lubits;targetrequires%lubits预处理算术的最高精度为%lu位;目标需要%lu位

rawstringdelimiterlongerthan16characters原始字符串分隔符长过16个字符

registering\\%s\\asbothapragmaandapragmanamespace

“%s〞既被注册为一个pragma又被注册为一个pragma命名空间

registeringpragma\\%s\\withnameexpansionandnonamespacepragma“%s〞被注册为一个命名扩展,而没有命名空间

registeringpragmawithNULLhandlerpragma注册为被NULL处理

registeringpragmasinnamespace\\%s\\withmismatchednameexpansion在命名空间“%s〞中注册pragma时名称扩展不匹配

13

returnmakespointerfromintegerwithoutacastreturn使integer转换为pointer,没有加强制类型转换。

styleoflinedirectiveisaGCCextensionline指示的风格是一个GCC扩展

suffixfordoubleconstantisaGCCextension双精度常量后缀是一个GCC扩展

suggesthiding#%sfromtraditionalCwithanindented#建议使用缩进的#以让#%s对传统C不可见

suggestnotusing#elifintraditionalC建议在传统C中不使用#elif

syntaxerrorinmacroparameterlist宏参数列表语法错误

targetcharislessthan8bitswide目标char短于8位

targetintisnarrowerthantargetchar目标int短于目标char

targetwchar_tisnarrowerthantargetchar目录wchar_t短于目标char

theconditionalbeganhere条件自此开始

theleftoperandof\\%s\\changessignwhenpromoted“%s的左操作数在提升时变换了符号

themeaningof‘\\\\%c’isdifferentintraditionalC‘\\\\%c’的意义与在传统C中不同

themeaningof‘\\\\a’isdifferentintraditionalC‘\\\\a’的意义与在传统C中不同

themeaningof‘\\\\x’isdifferentintraditionalC‘\\\\x’的意义与在传统C中不同

therightoperandof\\%s\\changessignwhenpromoted“%s的右操作数在提升时变换了符号

14

thisisthelocationofthepreviousdefinition这是从前定义的位置

thisuseof\\defined\\maynotbeportable使用“defined可能不利于移植

token\\%s\\isnotvalidinpreprocessorexpressions标识符“%s〞在预处理表达式中无效

toomanydecimalpointsinnumber数字中有太多小数点

traditionalCignores#%swiththe#indented当#有缩进时传统C忽略#%s

traditionalCrejectsthe\\%.*s\\suffix传统C不接受“%.*s后缀

traditionalCrejectstheunaryplusoperator传统C不接受单目+运算符

trigraph??%cconvertedto%c三元符??%c转换为%c

trigraph??%cignored,use-trigraphstoenable

三元符??%c被忽略,请使用-trigraphs来启用

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论