Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
由于“可变参数参数造成的潜在堆污染”,Eclipse 的“未检查”警告有不同的行为。怎么修?
我有一个简单的Entry用于填充列表的对象 public class Entry fields public Entry int a String b String c some getters and an AsyncTask检索条目 O
Java
Android
eclipse
compilerwarnings
SuppressWarnings
如果调用某些函数,我可以强制编译器出错吗?
我的软件有 v1 和 v2 版本 v1 使用注册表来保存设置 大量调用 GetProfileInt 等 v2 现在使用 sqlite 数据库来保存设置 我们目前正在开发这两个分支 并将新功能从 v1 分支合并到 v2 分支 目前 我们必须记
c
visualstudio2010
visualc
compilererrors
compilerwarnings
当“while”中使用常量时,为什么 MSVC 会生成警告 C4127 - C
对于代码 while 1 MSVC 生成以下警告 warning C4127 conditional expression is constant MSDN警告页面建议使用for 代替while 1 我想知道有什么好处for 正在给出以及为
c
visualc
compilerwarnings
c4127
消息“警告:函数的隐式声明”
我的编译器 GCC 向我发出警告 警告 函数的隐式声明 为什么它会来 您正在使用编译器尚未看到其声明的函数 原型 yet 例如 int main fun 2 21 The compiler has not seen the declarat
c
compilerwarnings
[[maybe_unused]] 在成员变量上,GCC 警告(错误地?)该属性被忽略
在下面的example struct Foo maybe unused int member 1 void bar maybe unused int local 0 int main int argc char argv Foo f f b
c
C17
compilerwarnings
compilerbug
有谁知道查看 VB.NET 项目的所有编译器警告的方法吗?
VB NET 有一个相当烦人的限制 它将报告的编译器警告限制为 100 vbc warning BC42206 Maximum number of warnings has been exceeded 当尝试评估遵守 VB NET 最佳实践
VBNET
LIMIT
compilerwarnings
max
vbc
我的 lambda 参数真的会影响我的本地参数吗?
我正在处理一些 C 代码 它获取一些数据 并将其转发到传入的函数 void foo int data void fun int fun data 以下内容在没有警告的情况下工作 void bar int data int main int
c
gcc
Lambda
Clang
compilerwarnings
如何禁用几行代码的 GCC 警告
在 Visual C 中 可以使用 pragma warning disable 我还发现在海湾合作委员会你可以覆盖每个文件编译器标志 我该如何为 下一行 执行此操作 或者使用 GCC 在代码区域周围使用推送 弹出语义 看来这个可以做到 我
c
gcc
compilerwarnings
pragma
当块位于初始值设定项中时捕获块中的变量
考虑一下 id observer NSNotificationCenter defaultCenter addObserverForName MyNotification object nil queue nil usingBlock NS
Objectivec
automaticrefcounting
objectivecblocks
compilerwarnings
在 Haskell 中,如果绑定“隐藏现有绑定”,这意味着什么?
当我编译时 我收到来自 GHC 的警告 警告 pats 的此绑定隐藏了 match ignore ancs 定义中的现有绑定 这是函数 match ignore ancs TextPat c Text t c t match ignore
Haskell
compilerwarnings
ghc
C++:'cout << 指针 << ++pointer' 生成编译器警告
我这里有一个C 学习演示 char c M short s 10 long l 1002 char cptr c short sptr s long lptr l cout lt lt cptr t lt lt static cast
c
compilerwarnings
cout
当警告趋势出现时,如何将构建标记为不稳定?
因此 我们将 Jenkins 与 MS Build 结合使用来构建我们的项目 我们还有一个警告插件以及我们项目中的大量警告 我正在努力与这些警告作斗争 我想要采取的步骤之一是 当最后一个构建中的警告数量大于前一个构建时 将构建标记为不稳定
MSBuild
jenkins
compilerwarnings
jenkinsplugins
Objective-C 隐式转换丢失整数精度“NSUInteger”(又名“unsigned long”)到“int”警告
我正在做一些练习 并收到一条警告 隐式转换会丢失整数精度 NSUInteger 又名 unsigned long 到 int import
Objectivec
compilerwarnings
implicitconversion
将警告视为错误没有任何效果
在 Visual Studio 的项目设置中 我已将 将警告视为错误 设置为 全部 警告级别设置为 4 我通过故意引入违反 CA1305 的代码来对此进行测试 但它成功构建 并重建 并返回警告 我所期望的是构建会失败并返回一个错误 我的理解
visualstudio2010
codeanalysis
compilerwarnings
fxcop
使用 GCC 在 C 中重载函数 - 编译器警告
我正在尝试实现函数重载C 而且我非常接近 我正在使用 C99 所以 GenericC11 中引入的关键字对我不可用 我已经开发了一些工作代码 但是当我编译它时 我收到了一些警告 工作示例 include
c
cpreprocessor
compilerwarnings
C99
overloading
调用“Class.forName”时未选中强制转换警告
我的代码如下 package com foo public class TestComposition public static void main String args try Class
Java
casting
compilerwarnings
MSVC -Wall 中标准标头中的数千条警告是怎么回事?
有些人似乎建议您使用 Wall 但是当我在一个只有 main cpp 和一些包含的小型测试项目上执行此操作时 我收到了 5800 个警告 其中大多数在标准标头或 Windows 标头中 这是有意的行为吗 如何使我的编译警告不再出现 以下只是
c
visualc
compilerwarnings
Dart:如何忽略omit_local_variable_types警告?
我正在使用 Dart Flutter 和 IntelliJ Idea 开发移动应用程序和 Web 前端 当前版本的 Dart 会对正确输入局部变量发出警告 有一个 Dart 风格指南https dart lang github io lin
dart
compilerwarnings
混合声明和代码
当我使用 gcc o dene Wall ansi pedantic errors dene c 编译函数时 gcc 不会发出错误 你能在 if 循环中查看以 char 开头的行吗 static void remove negation c
c
declaration
compilerwarnings
c89
赋值<指向常量数组的指针> = <指向数组的指针>:不兼容的指针
当我编译这样的东西时 double da 3 2 3 4 double pda 3 da double const cpda 3 pda gcc warning MSVC ok 海湾合作委员会警告我 warning initializati
c
pointers
constants
compilerwarnings
gccwarning
«
1 ...
3
4
5
6
7
8
9
»