compiler-warnings

    7热度

    1回答

    我有一个2007年德尔福应用程序下面的代码: function TBaseCriteriaObject.RecursiveCount( ObjType: TBaseCriteriaObjectClass): integer; var CurObj: TBaseCriteriaObject; begin result := 0; {$WARNINGS OFF}

    -1热度

    1回答

    我有一些问题,我的功能,不知道如何解决这个问题,这是我的代码: ListResult result=listFind(currentLines, compareBasicLines, &linePrototype); <-here problem compareBasicLines函数指针 int compareBasicLines(ptrLine line1, ptrLine line2){

    0热度

    2回答

    warning: passing argument 1 of 'bsearch' makes pointer from integer without a cast 入门以下警告和相应的代码是 Parent =bsearch((const size_t)ParentNum, ClauseVector, Size, sizeof(CLAUSE),pcheck_CompareNu

    1热度

    1回答

    REGPARM被定义为: #if __GNUC__ >= 3 #define REGPARM(num) __attribute__((regparm(num))) #else #if defined (_MSC_VER) || defined(__BORLANDC__) #define REGPARM(num) __fastcall #else #define REGPARM(num)

    8热度

    2回答

    与Ben Gottlieb's question类似,我有一些不赞成使用的调用正在扰乱我。有没有办法通过行压制警告?例如: if([[UIApplication sharedApplication] respondsToSelector:@selector(setStatusBarHidden:withAnimation:)]) { [[UIApplication share

    21热度

    5回答

    棉绒产生一定的警示作用,如: foo.c XXX Warning 534: Ignoring return value of function bar() 从皮棉manual 534忽略的功能 “符号”返回值(与位置相比较)A 返回值的函数是 仅针对副作用调用,因为对于 示例,在st中本身或 运算符的逗号左侧。尝试:(void)function();以 调用函数并忽略其返回值 的值。请参阅第5

    19热度

    2回答

    我有两个引用一个SQLite装配,一个用于32位和一个64位,它看起来像这样(这是一个测试项目,试图摆脱的警告,不要在挂了路径): <Reference Condition=" '$(Platform)' == 'x64' " Include="System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc

    0热度

    1回答

    我在过去的4个小时里一直在摸头,尝试各种各样的小实验,但似乎无法弄清楚发生了什么问题。这可能是一个编译器错误? Test.m: - (id)initWithContentsOfURL:(NSURL *)aURL error:(NSError **)error { if (!(self = [super init])) { return nil; } re

    6热度

    2回答

    以下代码在MSVC 2008上与/analyze一起编译时生成警告C6284:当调用函数时需要字符串时,将对象作为参数'%s'传递。 CString strTmp, str; str = L"aaa.txt" strTmp.Format (L"File: %s", str); 我正在寻找这一个很好的解决方案,不需要static_cast

    1热度

    3回答

    我们有一个针对.NET 3.5的VS2008 CS DLL项目。使用MSBuild 3.5时,它在我们的CI服务器上成功构建。 当CI升级到使用的MSBuild 4.0,同一项目中构建失败,由于1警告消息: C:\ WINDOWS \ Microsoft.NET \框架\ v3.5版本\ Microsoft.Common .targets(1418,9): 警告MSB3283:找不到包装类型库“A