Questions tagged [compiler-warnings]

Messages emitted by a compiler which indicate potential problems in code or configuration.

Compiler warnings typically flag patterns in code that could potentially cause problems, but for lack of context the compiler cannot declare absolutely that the code is flawed.

2652 questions
1
vote
0 answers

'provider.deploymentBucket': unrecognized property 'accessLog' error in Serverless.yml

I have been trying to set the "Server access logging" for the deployment bucket in the serverless file with the following code: deploymentBucket: accessLog: bucket: !Ref BucketReference prefix: 'BucketPrefix' The layout for the above code was…
1
vote
1 answer

warning: comparison is always true due to limited range of data type causes crash

I have a warning that I am unable to find the cause of. I am following instructional code in a text on Cocoa programming that implements a document based image slide show. This warning causes a while loop to be executed more than the correct…
Mike
  • 331
  • 2
  • 9
1
vote
1 answer

the compiler compliance specified is 1.8 but a jre 18 is used

VS Code reported the warning that "the compiler compliance specified is 1.8 but a jre 18 is used" and I don't know how to solve it. I'm searching for more information but I can't find anything about this problem, I need help to solve it.
1
vote
0 answers

CA1508 - line is never 'null'. Remove or refactor the condition(s) to avoid dead code

Code Block in question: using var content = new StringContent( JsonSerializer.Serialize(executeRequest, new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }), System.Text.Encoding.UTF8); content.Headers.ContentType…
fritz6
  • 73
  • 1
  • 16
1
vote
1 answer

Multiple Emacs Lisp config files lead to "free variable" and "function not known to be defined" warnings

I've been looking for emacs config files for a while, so that I learn how to structure my Emacs config in the most optimal way. Now i'm looking at purcell's config files which look very tidy and simple to read. However, for every config file I've…
cidra
  • 374
  • 1
  • 4
  • 16
1
vote
1 answer

warning: no description found for function main using betty compliant syntax

I'm learning the programming language C and using the Betty coding style of writing C github.com/holbertonschool/betty), I have have been getting this syntax warning. #include int main(void) { int a; printf("\n Enter: "); …
Noémie
  • 21
  • 1
  • 1
  • 2
1
vote
1 answer

C4389 signed/unsigned mismatch only for x86 compilation c++

I am seeing a C4389: "'==': signed/unsigned mismatch" compiler warning when I execute the following code in Visual Studio using the x86 compiler using a warning level of 4. #include #include void functionA() { …
Milos
  • 167
  • 1
  • 11
1
vote
1 answer

How can I configure Eclipse to save console out for my build?

I specifically only want console out for Building my code, which is primarily C++. Every search for this leads me to configuring Run Configuration(s) to output the console. I'm not trying to RUN my program, just want the additional detail from…
skittlebiz
  • 359
  • 4
  • 8
1
vote
1 answer

How do you avoid full compilation with gyp?

I'm getting started with the `node-addon-api' and while my code does compile and run, I do get the following warning: Generating code Previous IPDB not found, fall back to full compilation. All 303 functions were compiled because no usable…
Markstar
  • 639
  • 9
  • 24
1
vote
1 answer

Dealing with an `-Wincompatible-pointer-types` warning

I have the following code which is causing the -Wincompatible-pointer-types warning: union SensorData { uint64_t raw_sensor_data; struct { uint16_t humidity_data; uint16_t temperature_data; }; } sensor_data; /* ...…
Kalcifer
  • 1,211
  • 12
  • 18
1
vote
0 answers

Export Android compiler Warning to text file

I want to write all the compiler warnings in a text file. Once we build it, we can see warnings in Build Output as seen in screenshot. Is the file already available?
1
vote
2 answers

{$WARN DUPLICATE_CTOR_DTOR OFF} gets deleted from Dpk file

I need to turn off this compiler warning because I don't intend to make my library compatible with C++. If I put the compiler directive in the PAS file that generates the warning, it is ignored. People on the mighty internet say that {$WARN…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
1
vote
3 answers

How to get rid of serverless "Warning: Invalid configuration encountered at root: unrecognized property 'deploymentBucket'"

I've got a web application running on the serverless framework version 3.7.5. Every time I deploy my lambda function I get this warning: "Warning: Invalid configuration encountered at root: unrecognised property 'deploymentBucket'". I have attached…
1
vote
2 answers

Diffrence between frequently use of typeid?

What's difference between these codes and why do I have a warning in the second code? warning: expression with side effects has no effect in an unevaluated context struct A { }; struct B : A { }; int main(){ A* temp = new A(); A* temp1…
H.M
  • 425
  • 2
  • 16
1
vote
1 answer

How to enable warning in each occurrences "implicit declaration of function"?

I get "implicit declaration of function" for first occurrence in code but the other occurrences are not highlighted I would like to se all of them at once. As shown below. I am using: GNU Tools for ARM Embedded Processors (arm-none-eabi-gcc)…