Questions tagged [warnings]

A warning is often issued on recognizing a potential high-risk situation, a probable misunderstanding, degraded service or imminent failure.

A warning-level error message shown by a compiler indicates a piece of code which the compiler recognizes as being potentially a problem, but which is syntactically correct such that the compiler is able to continue.

The seriousness of warning may vary from basically an error to something that could be considered just as bad programming style. Most of compilers provide keys to disable default warnings and may provide keys to enable warnings that are disabled by default (e.g. -Wall, -Wextra, -Werror).

5829 questions
69
votes
14 answers

Android build warning Mapping new ns to old ns

I created a new project in android studio and added all the dependencies. All of them are latest. When I built the project I am getting these warnings. There is no code in the app. These started showing after I added the dependencies. Should I just…
Vishal Kashi
  • 872
  • 1
  • 6
  • 12
67
votes
9 answers

Xcode build warning - Target Integrity - Provisioning profile is expiring only for the ProjectnameTests Target

All my apps that i've created so far do this. It does nothing to the app or being able to run it but it's just annoying always having that 1 warning. I'm Using Xcode 4.2 OSX 10.7.3 This is the actual warning: -Target Integrity Provisioning profile…
rob1302
  • 1,631
  • 3
  • 15
  • 18
67
votes
2 answers

Reported critical issues with version 17.0.0. google play warning

I got this warning when I was publishing my app The developer of play-services-safetynet (com.google.android.gms:play-services-safetynet) has reported critical issues with version 17.0.0. Consider upgrading before publishing a new release. Here's…
67
votes
7 answers

Vue 3 passing array warning: Extraneous non-props attributes were passed to component but could not be automatically inherited

please, I'm learning a VueJS 3 and I have probably begineer problem. I have warn in browser developer console like this one: The Message is: [Vue warn]: Extraneous non-props attributes (class) were passed to component but could not be automatically…
Bambi Bunny
  • 1,008
  • 2
  • 9
  • 18
67
votes
18 answers

C / C++ compiler warnings: do you clean up all your code to remove them or leave them in?

I've worked on many projects where I've been given code by others to update. More often than not I compile it and get about 1,000+ compiler warnings. When I see compiler warnings they make me feel dirty, so my first task is to clean up the code and…
KPexEA
  • 16,560
  • 16
  • 61
  • 78
67
votes
3 answers

Is there any way to show, or throw, a PHP warning?

I have a select() method in a database class, that has an optional boolean argument $sum. This argument is used to say if the method should use COUNT(*) or not too. I would like to show a warning, like those normal PHP errors, if I try to access…
igorsantos07
  • 4,456
  • 5
  • 43
  • 62
66
votes
3 answers

How to fix Rails's warning messages with Ruby 2.7.0

Did anyone resolve this issue with Ruby 2.7.0? I used rbenv and installed Ruby v2.7.0 and then created a Rails project using Rails v6.0.2.1. Currently, by running one of rails s rails s -u puma rails s -u webrick the server is up and the site is…
Nezir
  • 6,727
  • 12
  • 54
  • 78
66
votes
18 answers

Turning HtmlUnit Warnings off

Do you know how can I turn Warnings, Notes, Errors in HtmlUnit off?
oneat
  • 10,778
  • 16
  • 52
  • 70
65
votes
4 answers

Xcode warning "Property access results unused - getters should not be used for side effects"

I'm getting this warning when I'm calling a local routine. My code is this: -(void)nextLetter { // NSLog(@"%s", __FUNCTION__); currentLetter ++; if(currentLetter > (letters.count - 1)) { currentLetter = 0; } …
ICL1901
  • 7,632
  • 14
  • 90
  • 138
65
votes
7 answers

Disable DTD warning for Ant scripts in Eclipse?

I'm using Eclipse Ganymede. Everything works fine, but I have an anal-retentive yearning for a warning-free Problems tab. Right now it (correctly) complains about my Ant scripts: "No grammar constraints (DTD or XML schema) detected for the…
Brian Deacon
  • 21,384
  • 13
  • 39
  • 41
64
votes
4 answers

Fatal error: Uncaught Error: Cannot use a scalar as an array warning

I have the following code: $final = [1 => 2]; $id = 1; $final[$id][0] = 3; The code seems to work fine, but I get this warning: Warning: Cannot use a scalar value as an array in line X (the line with: $final[$id][0] = 3). Can anyone tell me…
zozo
  • 8,230
  • 19
  • 79
  • 134
64
votes
7 answers

XCode 6.3 Warning: synthesize property

In new Xcode 6.3 I get this warning: Auto property synthesis will not synthesize property 'homeInt'; it will be implemented by its superclass, use @dynamic to acknowledge intention How I can remove it?
UnRewa
  • 2,462
  • 2
  • 29
  • 31
64
votes
6 answers

Portability of #warning preprocessor directive

I know that the #warning directive is not standard C/C++, but several compilers support it, including gcc/g++. But for those that don't support it, will they silently ignore it or will it result in a compile failure? In other words, can I safely…
jonner
  • 6,331
  • 6
  • 30
  • 28
64
votes
2 answers

Class is a raw type. References to generic type Class should be parameterized

I have the following class (from a simple Spring tutorial) public class CarValidator implements Validator { public boolean supports(Class aClass) { return Car.class.equals(aClass); } public void validate(Object obj, Errors…
user167768
62
votes
1 answer

iCloud and GEOResourceManifestServerRemoteProxy: Lost connection to geod warning

I am testing my app that uses iCloud. Sometimes, when I fire up the app I get the following warning in the console: GEOResourceManifestServerRemoteProxy: Lost connection to geod Once I get this warning I don't seem to get any data from iCloud. I…
reza23
  • 3,079
  • 2
  • 27
  • 42