compiler-warnings专题提供compiler-warnings的最新资讯内容,帮你更好的了解compiler-warnings。
今天,在遍历一些代码时,我遇到了以下两个函数头,并据我所知,它们应该是重复的。相同数量的参
以下代码在使用gcc进行编译时会发出警告,但仅限版本<= 9.3 <pre><code>#include &lt;array&gt; #include &lt;iostre
当某些类型的强制类型转换无法进行时,例如Visual Studio,Visual Studio能够警告用户 <pre class="lang-cs prett
这也许是特例。当我追踪C代码时,我看到了警告。说 <code>implicit declaration of function &#39;Wifi_Hosts_Syn
<code>@Deprecated</code>注释中有一些我无法复制的特殊内容吗? 我需要创建一个类似于<code>@Deprecated</c
我在GNU / Linux上使用CLion 2020.2。 CLion编译我的项目或其中的文件以显示问题,错误,警告和/或建议
全部 以下给出警告: <pre><code>std::list&lt;MyList&gt;::iterator it = std::next( m_lines.begin(), m_currentLine - 1 )
当前正在启用所有可能的编译器警告。 观察:以下<em>信息</em>现在作为“警告”弹出(带有/ Wall的
可以检查类型中的属性是否未使用,例如: <pre><code>//@CheckPropertyUsage type MyType = { a: number; b: number;
考虑以下代码: <pre><code>int __attribute__((warn_unused_result)) foo(void) { return 42; } int main(void) { foo(); }
对于以下编译器警告,我感到困惑,当我尝试将ipv4地址<code>in_addr</code>从<code>struct sockaddr_in</code>转换为<
我对kotlin的<code>when</code>声明很感兴趣。它似乎几乎像Lisp <code>cond</code>一样强大,但不完全一样。在kotli
以下代码取决于该概念是在该类之前<em> </em>还是<em> </em>之后定义的。目的是检查是否可以从<code>Quantity<
如何看到“不同符号的整数比较:'const unsigned long long'和'const int'。”警告是Clion Problems小部件中的错误
我有这样的带有return语句的宏: <pre class="lang-rust prettyprint-override"><code>macro_rules! return_fail { ( $res:ex
我一直在和Visual Studio作战。我喜欢使用\ WX选项将所有警告视为错误,所以我有一个common.h,它看起来像
示例代码: <pre><code>int f1(char c){ return c; }; int f2(int i ){ return i; }; int main(void) { return (1 ? f1 : f2)(0); } <
在我们的项目中,我们经常使用这样的构造(为简化起见,我们实际上使用的是更安全的版本): <pr
对于以下代码段:(或选中<a href="https://godbolt.org/z/15bqMj" rel="nofollow noreferrer">https://godbolt.org/z/15bqMj</a>)<
我刚刚在 clion 的 C++ 项目中编写了这个代码 <pre><code>int step_size_x = someValue; int step_size_y = anotherValue; wh