compiler-warnings Questions
3
Solved
When I try to export the following function as a dll:
extern "C" __declspec(dllexport) void some_func()
{
throw std::runtime_error("test throwing exception");
}
Visual C++ 2008 gives me the fol...
Hysterical asked 25/1, 2010 at 19:35
3
Solved
I have a number of projects that I have combined in my project. The error message I get is this:
There was a mismatch between the processor architecture of the project being built "MSIL" and the p...
Followup asked 31/7, 2014 at 15:41
15
Solved
I am running a build task in a Java project in Visual Studio Code.
The warning in the "PROBLEMS" tab:
[myfile].java is a non-project file, only syntax errors are reported
It refers to t...
Rosalindrosalinda asked 15/5, 2020 at 19:27
2
I have macro with return statement like this:
macro_rules! return_fail {
( $res:expr ) => {
match $res {
Ok(val) => val,
Err(e) => {
eprintln!(
"An error: on {}:{} {}; aborting ...
Hypha asked 8/9, 2020 at 17:34
5
Solved
I am working on an app where I have created modules for each feature of the app. I have to switch from one Module UI Controller to another Module UI Controller.
I have UIController in a Module and...
Scandent asked 7/1, 2019 at 11:37
10
Solved
I saw somewhere assert used with a message in the following way:
assert(("message", condition));
This seems to work great, except that gcc throws the following warning:
warning: left-hand opera...
Reprimand asked 3/5, 2011 at 9:54
14
Solved
While tinkering in Rust, I repeatedly encountered a lot of dead code warnings that made it difficult to focus. I tried using the outer attribute #[allow(dead_code)], but it only silences one warnin...
Woofer asked 16/9, 2014 at 19:51
11
Solved
When using the ObsoleteAtribute in .Net it gives you compiler warnings telling you that the object/method/property is obsolete and somthing else should be used. I'm currently working on a project t...
Trudy asked 30/9, 2008 at 17:31
2
I just downloaded the new Visual Studio 2017 RTM and am using it to compile a Windows Library. I used VS2017 to create the new Windows Library project, then I copied into the folder all my code fil...
Yearling asked 9/3, 2017 at 15:39
4
Solved
main question: Is there a configuration for cmake, to show or ignore compiler warnings/errors only from a certain directory?
alternative solution: How can I toggle this in QtCreator?
background /...
Recumbent asked 28/2, 2013 at 10:39
1
I am trying to suppress some warnings in Visual Studio, but the problem is that they don't have a code or anything I could use to identify them(or I can't find it).
Most of these errors look like ...
Douala asked 17/5, 2016 at 14:19
6
Solved
The C# compiler shows a warning (CS1591), if a public member is undocumented:
Warning ... Missing XML comment for publicly visible type or member ...
That includes all properties, methods, cla...
Profluent asked 15/9, 2014 at 10:42
6
Solved
I Just came across a situation where I need to put the data in the JSONObject, while doing that I received a warning from the compiler regarding.
Type safety: The method put(Object, Object) belon...
Klipspringer asked 17/2, 2016 at 9:48
3
I'd like to enable -Wfloat-equal in my build options (which is a GCC flag that issues a warning when two floating pointer numbers are compared via the == or != operators). However, in several heade...
Voodoo asked 25/2, 2011 at 23:1
1
I'm working with a piece of Swift code (from here) that takes a modelCode and checks against a modelMap dictionary to get a model. When the model is a simulator, it checks the simulator's model ide...
Significancy asked 24/10, 2023 at 20:33
6
Solved
Since the new ADT preview version (version 21), they have a new lint warning that tells me the next thing on the manifest file (in the application tag):
Should explicitly set android:allowBackup...
Groschen asked 28/9, 2012 at 22:55
10
Solved
What is the list of valid @SuppressWarnings warning names in Java?
The bit that comes in between the ("") in @SuppressWarnings("").
Tartarean asked 30/7, 2009 at 11:25
1
Solved
I run into a problem where using the conditional operator returns garbage string_view in MSVC, because the string_view was backed by a temp object?.
#include <string>
#include <iostream>...
Kissinger asked 20/10, 2023 at 1:15
5
We use Gradle 2.1 and java plugin. During compileJava different warnings occur, for example:
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: ../SomeClass.java...
Subglacial asked 17/2, 2015 at 22:45
1
Solved
I struggle to find resources on this, and yet, so many of my classes are running into this error when I compile my code on the latest Java (21).
Here is a code example.
public class ThisEscapeExamp...
Whet asked 28/9, 2023 at 2:30
5
Solved
I have imported the three20 project into my project, and when I upgraded to Xcode 4.2 with iOS 5, a bunch of warnings appeared in the project.
I don't care about them, but they make a lot of nois...
Vevay asked 3/11, 2011 at 15:36
5
I am currently self-teaching myself C++ using Bjarne Stroustrup's book (2nd ed). In one of the examples, he uses a range-for-loop to read the elements in a vector. When I wrote and compiled the cod...
Denizen asked 14/3, 2018 at 4:14
8
Solved
So, (seemingly) out of the blue, my project starts getting compiler warning 1685:
The predefined type
'System.Runtime.CompilerServices.ExtensionAttribute'
is defined in multiple assemblies in
...
Housekeeping asked 2/3, 2009 at 16:18
3
Solved
Why does this code trigger a "control reaches end of non-void function" even if all possible values of type_t are handled? What is the best way to take care of this warning? Adding a return -1 afte...
Hawkbill asked 9/11, 2015 at 10:37
2
Before clang 16.0 I was able to compile all my projects using -Weveything without problems,
fixing my code and paying attention to the (useful) warnings that this option gave.
However, it seems tha...
Dill asked 31/8, 2023 at 16:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.