Warnings: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 38: | Line 38: | ||
<pre> | <pre> | ||
Making all in sounddrv | |||
soundcoreaudio.c:380:22: warning: 'FindNextComponent' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |||
Component comp = FindNextComponent(NULL, &desc); | |||
^ | |||
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:469:1: note: 'FindNextComponent' | |||
declared here | |||
FindNextComponent( | |||
^ | |||
soundcoreaudio.c:387:11: warning: 'OpenAComponent' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |||
err = OpenAComponent(comp, &outputUnit); | |||
^ | |||
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:559:1: note: 'OpenAComponent' declared | |||
here | |||
OpenAComponent( | |||
^ | |||
soundcoreaudio.c:448:5: warning: 'CloseComponent' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |||
CloseComponent(outputUnit); | |||
^ | |||
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:593:1: note: 'CloseComponent' declared | |||
here | |||
CloseComponent(ComponentInstance aComponentInstance) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IP... | |||
^ | |||
In file included from ./../maincpu.c:505: | |||
../../src/6510core.c:2259:17: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses] | |||
JSR(); | |||
^~~~~ | |||
../../src/6510core.c:1058:22: note: expanded from macro 'JSR' | |||
CLK_ADD(CLK, CLK_JSR_INT_CYCLE); \ | |||
^~~~~~~~~~~~~~~~~ | |||
c64dtvcpu.c:198:99: note: expanded from macro 'CLK_JSR_INT_CYCLE' | |||
#define CLK_JSR_INT_CYCLE (1 - (dtv_registers[9] & 1) + ((dtv_registers[9] & 2) && (reg_pc == 0)) ? 1 : 0) | |||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |||
c64dtvcpu.c:129:60: note: expanded from macro 'CLK_ADD' | |||
#define CLK_ADD(clock, amount) c64dtvcpu_clock_add(&clock, amount) | |||
^ | |||
../../src/6510core.c:2259:17: note: place parentheses around the '+' expression to silence this warning | |||
JSR(); | |||
^~~~~ | |||
../../src/6510core.c:1058:22: note: expanded from macro 'JSR' | |||
CLK_ADD(CLK, CLK_JSR_INT_CYCLE); \ | |||
^~~~~~~~~~~~~~~~~ | |||
c64dtvcpu.c:198:99: note: expanded from macro 'CLK_JSR_INT_CYCLE' | |||
#define CLK_JSR_INT_CYCLE (1 - (dtv_registers[9] & 1) + ((dtv_registers[9] & 2) && (reg_pc == 0)) ? 1 : 0) | |||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |||
c64dtvcpu.c:129:60: note: expanded from macro 'CLK_ADD' | |||
#define CLK_ADD(clock, amount) c64dtvcpu_clock_add(&clock, amount) | |||
^ | |||
../../src/6510core.c:2259:17: note: place parentheses around the '?:' expression to evaluate it first | |||
JSR(); | |||
^~~~~ | |||
../../src/6510core.c:1058:22: note: expanded from macro 'JSR' | |||
CLK_ADD(CLK, CLK_JSR_INT_CYCLE); \ | |||
^~~~~~~~~~~~~~~~~ | |||
c64dtvcpu.c:198:99: note: expanded from macro 'CLK_JSR_INT_CYCLE' | |||
#define CLK_JSR_INT_CYCLE (1 - (dtv_registers[9] & 1) + ((dtv_registers[9] & 2) && (reg_pc == 0)) ? 1 : 0) | |||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ | |||
c64dtvcpu.c:129:60: note: expanded from macro 'CLK_ADD' | |||
#define CLK_ADD(clock, amount) c64dtvcpu_clock_add(&clock, amount) | |||
^ | |||
Making all in view | |||
driveview.m:219:19: warning: multiple methods named 'tag' found | |||
int command = [sender tag]; | |||
^~~~~~~~~~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:306:1: note: using | |||
- (NSInteger)tag; | |||
^~~~~~~~~~~~~~~~~ | |||
driveview.m:229:1: note: also found | |||
- (int)tag | |||
^~~~~~~~~~ | |||
driveview.m:229:1: warning: conflicting return type in implementation of 'tag': 'NSInteger' (aka 'long') vs 'int' [-Wmismatched-return-types] | |||
- (int)tag | |||
^ ~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:306:1: note: previous definition is here | |||
- (NSInteger)tag; | |||
^ ~~~~~~~~~ | |||
2 warnings generated. | |||
soundview.m:63:31: warning: incompatible pointer types sending 'NSAttributedString *' to parameter of type 'NSString *' | |||
[-Wincompatible-pointer-types] | |||
[minVolume setStringValue:[[NSAttributedString alloc] initWithRTF:rtfMinVolString documentAttributes:NULL]]; | |||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h:227:1: note: instance method 'initWithRTF:documentAttributes:' is | |||
assumed to return an instance of its receiver type ('NSAttributedString *') | |||
- (id)initWithRTF:(NSData *)data documentAttributes:(NSDictionary **)dict; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:63:36: note: passing argument to parameter 'aString' here | |||
- (void)setStringValue:(NSString *)aString; | |||
^ | |||
soundview.m:73:31: warning: incompatible pointer types sending 'NSAttributedString *' to parameter of type 'NSString *' | |||
[-Wincompatible-pointer-types] | |||
[maxVolume setStringValue:[[NSAttributedString alloc] initWithRTF:rtfMaxVolString documentAttributes:NULL]]; | |||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h:227:1: note: instance method 'initWithRTF:documentAttributes:' is | |||
assumed to return an instance of its receiver type ('NSAttributedString *') | |||
- (id)initWithRTF:(NSData *)data documentAttributes:(NSDictionary **)dict; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:63:36: note: passing argument to parameter 'aString' here | |||
- (void)setStringValue:(NSString *)aString; | |||
^ | |||
2 warnings generated. | |||
Making all in menu | |||
viceappcontroller.m:191:35: warning: 'filename' is deprecated [-Wdeprecated-declarations] | |||
NSString * path = [[panel filename] stringByAppendingPathExtension:[extensions objectAtIndex:type]]; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here | |||
- (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); | |||
^ | |||
viceappcontroller.m:315:34: warning: 'filename' is deprecated [-Wdeprecated-declarations] | |||
NSString * path = [panel filename]; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here | |||
- (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); | |||
^ | |||
2 warnings generated. | |||
vicemachinecontroller.m:76:27: warning: 'createDirectoryAtPath:attributes:' is deprecated [-Wdeprecated-declarations] | |||
if (![fileManager createDirectoryAtPath:prefPath attributes:nil]) { | |||
^ | |||
/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:172:1: note: method 'createDirectoryAtPath:attributes:' declared here | |||
- (BOOL)createDirectoryAtPath:(NSString *)path attributes:(NSDictionary *)attributes NS_DEPRECATED(10_0, 10_5, 2_0, 2_0); | |||
^ | |||
vicemachinecontroller.m:409:26: warning: 'removeFileAtPath:handler:' is deprecated [-Wdeprecated-declarations] | |||
[fileManager removeFileAtPath:newPath handler:nil]; | |||
^ | |||
/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:178:1: note: method 'removeFileAtPath:handler:' declared here | |||
- (BOOL)removeFileAtPath:(NSString *)path handler:(id)handler NS_DEPRECATED(10_0, 10_5, 2_0, 2_0); | |||
^ | |||
vicemachinecontroller.m:412:30: warning: 'movePath:toPath:handler:' is deprecated [-Wdeprecated-declarations] | |||
[fileManager movePath:oldPath toPath:newPath handler:nil]; | |||
^ | |||
/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:177:1: note: method 'movePath:toPath:handler:' declared here | |||
- (BOOL)movePath:(NSString *)src toPath:(NSString *)dest handler:(id)handler NS_DEPRECATED(10_0, 10_5, 2_0, 2_0); | |||
^ | |||
vicemachinecontroller.m:758:9: warning: implicit declaration of function 'charset_petconvstring' is invalid in C99 | |||
[-Wimplicit-function-declaration] | |||
charset_petconvstring(pstr,0); | |||
^ | |||
vicemachinecontroller.m:760:9: warning: implicit declaration of function 'kbdbuf_feed' is invalid in C99 [-Wimplicit-function-declaration] | |||
kbdbuf_feed(pstr); | |||
^ | |||
5 warnings generated. | |||
vicefilepanel.m:194:24: warning: sending 'VICEFilePanel *' to parameter of incompatible type 'id<NSOpenSavePanelDelegate>' | |||
[panel setDelegate:self]; | |||
^~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:130:50: note: passing argument to parameter 'delegate' here | |||
- (void)setDelegate:(id<NSOpenSavePanelDelegate>)delegate; | |||
^ | |||
vicefilepanel.m:224:27: warning: 'filename' is deprecated [-Wdeprecated-declarations] | |||
fileName = [panel filename]; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here | |||
- (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); | |||
^ | |||
vicefilepanel.m:229:30: warning: comparison of constant 'NSNotFound' (9223372036854775807) with expression of type 'unsigned int' is always | |||
true [-Wtautological-constant-out-of-range-compare] | |||
if(contentsIndex != NSNotFound) { | |||
~~~~~~~~~~~~~ ^ ~~~~~~~~~~ | |||
vicefilepanel.m:275:23: warning: 'filename' is deprecated [-Wdeprecated-declarations] | |||
return [panel filename]; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here | |||
- (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); | |||
^ | |||
vicefilepanel.m:291:23: warning: 'filename' is deprecated [-Wdeprecated-declarations] | |||
return [panel filename]; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here | |||
- (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); | |||
^ | |||
vicefilepanel.m:312:23: warning: 'filename' is deprecated [-Wdeprecated-declarations] | |||
return [panel filename]; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here | |||
- (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); | |||
^ | |||
vicefilepanel.m:330:23: warning: 'filename' is deprecated [-Wdeprecated-declarations] | |||
return [panel filename]; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here | |||
- (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); | |||
^ | |||
vicefilepanel.m:345:23: warning: 'filename' is deprecated [-Wdeprecated-declarations] | |||
return [panel filename]; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here | |||
- (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); | |||
^ | |||
vicefilepanel.m:382:37: warning: 'filename' is deprecated [-Wdeprecated-declarations] | |||
NSString *filename = [panel filename]; | |||
^ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here | |||
- (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); | |||
^ | |||
9 warnings generated. | |||
Making all in dialog | |||
disassemblywindowcontroller.m:62:26: warning: sending 'DisassemblyWindowController *' to parameter of incompatible type 'id<NSMenuDelegate>' | |||
[theMenu setDelegate:self]; | |||
^~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h:150:42: note: passing argument to parameter 'anObject' here | |||
- (void)setDelegate:(id <NSMenuDelegate>)anObject; | |||
^ | |||
disassemblywindowcontroller.m:255:32: warning: sending 'DisassemblyWindowController *' to parameter of incompatible type | |||
'id<NSTableViewDataSource>' | |||
[memoryTable setDataSource:self]; | |||
^~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h:102:51: note: passing argument to parameter 'aSource' here | |||
- (void)setDataSource:(id <NSTableViewDataSource>)aSource; | |||
^ | |||
2 warnings generated. | |||
iotreewindowcontroller.m:62:27: warning: sending 'IOTreeWindowController *' to parameter of incompatible type 'id<NSOutlineViewDelegate>' | |||
[treeView setDelegate:self]; | |||
^~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h:125:49: note: passing argument to parameter 'anObject' here | |||
- (void)setDelegate:(id <NSOutlineViewDelegate>)anObject; | |||
^ | |||
iotreewindowcontroller.m:63:29: warning: sending 'IOTreeWindowController *' to parameter of incompatible type 'id<NSOutlineViewDataSource>' | |||
[treeView setDataSource:self]; | |||
^~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h:128:53: note: passing argument to parameter 'aSource' here | |||
- (void)setDataSource:(id <NSOutlineViewDataSource>)aSource; | |||
^ | |||
2 warnings generated. | |||
memorywindowcontroller.m:95:32: warning: sending 'MemoryWindowController *' to parameter of incompatible type 'id<NSTableViewDataSource>' | |||
[memoryTable setDataSource:self]; | |||
^~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h:102:51: note: passing argument to parameter 'aSource' here | |||
- (void)setDataSource:(id <NSTableViewDataSource>)aSource; | |||
^ | |||
1 warning generated. | |||
registerwindowcontroller.m:75:34: warning: sending 'RegisterWindowController *' to parameter of incompatible type 'id<NSTableViewDataSource>' | |||
[registerTable setDataSource:self]; | |||
^~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h:102:51: note: passing argument to parameter 'aSource' here | |||
- (void)setDataSource:(id <NSTableViewDataSource>)aSource; | |||
^ | |||
registerwindowcontroller.m:125:18: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] | |||
if(flags & 1 == 1) { | |||
^~~~~~~~ | |||
registerwindowcontroller.m:125:18: note: place parentheses around the '==' expression to silence this warning | |||
if(flags & 1 == 1) { | |||
^ | |||
( ) | |||
registerwindowcontroller.m:125:18: note: place parentheses around the & expression to evaluate it first | |||
if(flags & 1 == 1) { | |||
^ | |||
( ) | |||
2 warnings generated. | |||
resourceeditorcontroller.m:64:27: warning: sending 'ResourceEditorController *' to parameter of incompatible type 'id<NSOutlineViewDelegate>' | |||
[treeView setDelegate:self]; | |||
^~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h:125:49: note: passing argument to parameter 'anObject' here | |||
- (void)setDelegate:(id <NSOutlineViewDelegate>)anObject; | |||
^ | |||
resourceeditorcontroller.m:65:29: warning: sending 'ResourceEditorController *' to parameter of incompatible type | |||
'id<NSOutlineViewDataSource>' | |||
[treeView setDataSource:self]; | |||
^~~~ | |||
/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h:128:53: note: passing argument to parameter 'aSource' here | |||
- (void)setDataSource:(id <NSOutlineViewDataSource>)aSource; | |||
^ | |||
2 warnings generated. | |||
recordmediawindowcontroller.m:49:26: warning: using 'stringWithString:' with a literal is redundant [-Wobjc-redundant-literal-use] | |||
NSString *fileName = [NSString stringWithString:@"~/capture"]; | |||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |||
1 warning generated. | |||
viceapplication.m:94:51: warning: 'IOTreeWindowController' may not respond to 'initWithMemSpace:' | |||
cpuIOTreeWC = [[IOTreeWindowController alloc] initWithMemSpace:e_comp_space]; | |||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |||
1 warning generated. | |||
vicemachine.m:232:17: warning: implicit declaration of function 'monitor_startup_trap' is invalid in C99 [-Wimplicit-function-declaration] | |||
monitor_startup_trap(); | |||
^ | |||
1 warning generated. | |||
video.m:48:1: warning: control reaches end of non-void function [-Wreturn-type] | |||
} | |||
^ | |||
video.m:137:1: warning: control reaches end of non-void function [-Wreturn-type] | |||
} | |||
^ | |||
video.m:210:1: warning: control reaches end of non-void function [-Wreturn-type] | |||
} | |||
^ | |||
video.m:383:5: warning: implicit declaration of function 'video_render_setrawalpha' is invalid in C99 [-Wimplicit-function-declaration] | |||
video_render_setrawalpha(0xff000000); | |||
^ | |||
4 warnings generated. | |||
Making all in platform | |||
platform_macosx.c:61:16: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |||
if ((err = Gestalt(gestaltSystemVersion, &systemVersion)) != noErr) { | |||
^ | |||
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' declared here | |||
Gestalt( | |||
^ | |||
platform_macosx.c:76:20: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |||
if ((err = Gestalt(gestaltSystemVersionMajor, &versionMajor)) != noErr) { | |||
^ | |||
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' declared here | |||
Gestalt( | |||
^ | |||
platform_macosx.c:79:20: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |||
if ((err = Gestalt(gestaltSystemVersionMinor, &versionMinor)) != noErr) { | |||
^ | |||
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' declared here | |||
Gestalt( | |||
^ | |||
platform_macosx.c:82:20: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] | |||
if ((err = Gestalt(gestaltSystemVersionBugFix, &versionBugFix)) != noErr) { | |||
^ | |||
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' declared here | |||
Gestalt( | |||
^ | |||
4 warnings generated. | |||
In file included from info.c:33: | |||
./infocontrib.h:224:8: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
" Andr<E9> Fachat <fachat@physik.tu-chemnitz.de>\n" | |||
^~~~ | |||
./infocontrib.h:274:12: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
" Paul Dub<E9> \n" | |||
^~~~ | |||
./infocontrib.h:435:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
" Frank K<F6>nig <frank_koenig@t-online.de>\n" | |||
^~~~ | |||
./infocontrib.h:465:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
" Marko M<E4>kel<E4> <msmakela@gmail.com>\n" | |||
^~~~ ~~~~ | |||
./infocontrib.h:499:10: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
" Lasse <D6><F6>rni <loorni@mail.student.oulu.fi>\n" | |||
^~~~~~~~ | |||
./infocontrib.h:523:14: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
" Pablo Rold<E1>n <pdroldan@yahoo.com>\n" | |||
^~~~ | |||
./infocontrib.h:619:8: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
" Istv<E1>n F<E1>bi<E1>n\n" | |||
^~~~ ~~~~ ~~~~ | |||
./infocontrib.h:665:19: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
" Peternel, Per H<E5>kan Sundell and David Horrocks for writing\n" | |||
^~~~ | |||
./infocontrib.h:703:25: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
{ "1996-2001", "Andr<E9> Fachat", "Andr<E9> Fachat <fachat@physik.tu-chemnitz.de>" }, | |||
^~~~ | |||
./infocontrib.h:703:41: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
{ "1996-2001", "Andr<E9> Fachat", "Andr<E9> Fachat <fachat@physik.tu-chemnitz.de>" }, | |||
^~~~ | |||
./infocontrib.h:715:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
{ "2004-2015", "Paul Dub<E9>", "French", "Paul Dub<E9> " }, | |||
^~~~ | |||
./infocontrib.h:715:52: warning: illegal character encoding in string literal [-Winvalid-source-encoding] | |||
{ "2004-2015", "Paul Dub<E9>", "French", "Paul Dub<E9> " }, | |||
^~~~ | |||
12 warnings generated. | |||
joystick.c:499:12: warning: implicit declaration of function 'joystick_arch_init_resources' is invalid in C99 | |||
[-Wimplicit-function-declaration] | |||
return joystick_arch_init_resources(); | |||
^ | |||
joystick.c:562:5: warning: implicit declaration of function 'kbd_initialize_numpad_joykeys' is invalid in C99 | |||
[-Wimplicit-function-declaration] | |||
kbd_initialize_numpad_joykeys(joykeys[0]); | |||
^ | |||
2 warnings generated. | |||
petcat.c:1189:9: warning: unused variable 'version' [-Wunused-variable] | |||
int version = -1; | |||
^ | |||
1 warning generated. | |||
</pre> | </pre> |
Revision as of 12:47, 1 September 2015
- gpz (x86, Linux/Gentoo, 64bit, GCC, GnomeUI) (r28471)
-
- gpz (x86, Linux/Gentoo, 64bit, GCC, SDL) (r28471)
-
- gpz (Win32 crosscompile on Linux/32bit mingw32, GCC 3.x) (r28473)
mon_assemble65816.c: In function `mon_assemble_instr': mon_assemble65816.c:162: warning: comparison is always true due to limited range of data type
- gpz (Win32, GCC 3.x (64bit mingw32)) (r28473)
In file included from archdep.c:43:0: c:\mingw\include\dir.h:37:2: warning: #warning WARNING - The dir.h file is obsolete and will be removed; use io.h instead. [-Wcpp] #warning WARNING - The dir.h file is obsolete and will be removed; use io.h instead. ^
- strik (x86, Windows, 32bit, MSVC6, release build) (r22786)
For the debug build, some warnings are missing.
vice\src\zfile.c(202) : warning C4018: '<' : signed/unsigned mismatch vice\src\monitor\mon_lex.c(2999) : warning C4018: '<' : signed/unsigned mismatch
- gpz (OSX, clang) (r29876)
Making all in sounddrv soundcoreaudio.c:380:22: warning: 'FindNextComponent' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] Component comp = FindNextComponent(NULL, &desc); ^ /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:469:1: note: 'FindNextComponent' declared here FindNextComponent( ^ soundcoreaudio.c:387:11: warning: 'OpenAComponent' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] err = OpenAComponent(comp, &outputUnit); ^ /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:559:1: note: 'OpenAComponent' declared here OpenAComponent( ^ soundcoreaudio.c:448:5: warning: 'CloseComponent' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] CloseComponent(outputUnit); ^ /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:593:1: note: 'CloseComponent' declared here CloseComponent(ComponentInstance aComponentInstance) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IP... ^ In file included from ./../maincpu.c:505: ../../src/6510core.c:2259:17: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses] JSR(); ^~~~~ ../../src/6510core.c:1058:22: note: expanded from macro 'JSR' CLK_ADD(CLK, CLK_JSR_INT_CYCLE); \ ^~~~~~~~~~~~~~~~~ c64dtvcpu.c:198:99: note: expanded from macro 'CLK_JSR_INT_CYCLE' #define CLK_JSR_INT_CYCLE (1 - (dtv_registers[9] & 1) + ((dtv_registers[9] & 2) && (reg_pc == 0)) ? 1 : 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ c64dtvcpu.c:129:60: note: expanded from macro 'CLK_ADD' #define CLK_ADD(clock, amount) c64dtvcpu_clock_add(&clock, amount) ^ ../../src/6510core.c:2259:17: note: place parentheses around the '+' expression to silence this warning JSR(); ^~~~~ ../../src/6510core.c:1058:22: note: expanded from macro 'JSR' CLK_ADD(CLK, CLK_JSR_INT_CYCLE); \ ^~~~~~~~~~~~~~~~~ c64dtvcpu.c:198:99: note: expanded from macro 'CLK_JSR_INT_CYCLE' #define CLK_JSR_INT_CYCLE (1 - (dtv_registers[9] & 1) + ((dtv_registers[9] & 2) && (reg_pc == 0)) ? 1 : 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ c64dtvcpu.c:129:60: note: expanded from macro 'CLK_ADD' #define CLK_ADD(clock, amount) c64dtvcpu_clock_add(&clock, amount) ^ ../../src/6510core.c:2259:17: note: place parentheses around the '?:' expression to evaluate it first JSR(); ^~~~~ ../../src/6510core.c:1058:22: note: expanded from macro 'JSR' CLK_ADD(CLK, CLK_JSR_INT_CYCLE); \ ^~~~~~~~~~~~~~~~~ c64dtvcpu.c:198:99: note: expanded from macro 'CLK_JSR_INT_CYCLE' #define CLK_JSR_INT_CYCLE (1 - (dtv_registers[9] & 1) + ((dtv_registers[9] & 2) && (reg_pc == 0)) ? 1 : 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ c64dtvcpu.c:129:60: note: expanded from macro 'CLK_ADD' #define CLK_ADD(clock, amount) c64dtvcpu_clock_add(&clock, amount) ^ Making all in view driveview.m:219:19: warning: multiple methods named 'tag' found int command = [sender tag]; ^~~~~~~~~~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSView.h:306:1: note: using - (NSInteger)tag; ^~~~~~~~~~~~~~~~~ driveview.m:229:1: note: also found - (int)tag ^~~~~~~~~~ driveview.m:229:1: warning: conflicting return type in implementation of 'tag': 'NSInteger' (aka 'long') vs 'int' [-Wmismatched-return-types] - (int)tag ^ ~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSView.h:306:1: note: previous definition is here - (NSInteger)tag; ^ ~~~~~~~~~ 2 warnings generated. soundview.m:63:31: warning: incompatible pointer types sending 'NSAttributedString *' to parameter of type 'NSString *' [-Wincompatible-pointer-types] [minVolume setStringValue:[[NSAttributedString alloc] initWithRTF:rtfMinVolString documentAttributes:NULL]]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h:227:1: note: instance method 'initWithRTF:documentAttributes:' is assumed to return an instance of its receiver type ('NSAttributedString *') - (id)initWithRTF:(NSData *)data documentAttributes:(NSDictionary **)dict; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:63:36: note: passing argument to parameter 'aString' here - (void)setStringValue:(NSString *)aString; ^ soundview.m:73:31: warning: incompatible pointer types sending 'NSAttributedString *' to parameter of type 'NSString *' [-Wincompatible-pointer-types] [maxVolume setStringValue:[[NSAttributedString alloc] initWithRTF:rtfMaxVolString documentAttributes:NULL]]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h:227:1: note: instance method 'initWithRTF:documentAttributes:' is assumed to return an instance of its receiver type ('NSAttributedString *') - (id)initWithRTF:(NSData *)data documentAttributes:(NSDictionary **)dict; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:63:36: note: passing argument to parameter 'aString' here - (void)setStringValue:(NSString *)aString; ^ 2 warnings generated. Making all in menu viceappcontroller.m:191:35: warning: 'filename' is deprecated [-Wdeprecated-declarations] NSString * path = [[panel filename] stringByAppendingPathExtension:[extensions objectAtIndex:type]]; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here - (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); ^ viceappcontroller.m:315:34: warning: 'filename' is deprecated [-Wdeprecated-declarations] NSString * path = [panel filename]; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here - (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); ^ 2 warnings generated. vicemachinecontroller.m:76:27: warning: 'createDirectoryAtPath:attributes:' is deprecated [-Wdeprecated-declarations] if (![fileManager createDirectoryAtPath:prefPath attributes:nil]) { ^ /System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:172:1: note: method 'createDirectoryAtPath:attributes:' declared here - (BOOL)createDirectoryAtPath:(NSString *)path attributes:(NSDictionary *)attributes NS_DEPRECATED(10_0, 10_5, 2_0, 2_0); ^ vicemachinecontroller.m:409:26: warning: 'removeFileAtPath:handler:' is deprecated [-Wdeprecated-declarations] [fileManager removeFileAtPath:newPath handler:nil]; ^ /System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:178:1: note: method 'removeFileAtPath:handler:' declared here - (BOOL)removeFileAtPath:(NSString *)path handler:(id)handler NS_DEPRECATED(10_0, 10_5, 2_0, 2_0); ^ vicemachinecontroller.m:412:30: warning: 'movePath:toPath:handler:' is deprecated [-Wdeprecated-declarations] [fileManager movePath:oldPath toPath:newPath handler:nil]; ^ /System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:177:1: note: method 'movePath:toPath:handler:' declared here - (BOOL)movePath:(NSString *)src toPath:(NSString *)dest handler:(id)handler NS_DEPRECATED(10_0, 10_5, 2_0, 2_0); ^ vicemachinecontroller.m:758:9: warning: implicit declaration of function 'charset_petconvstring' is invalid in C99 [-Wimplicit-function-declaration] charset_petconvstring(pstr,0); ^ vicemachinecontroller.m:760:9: warning: implicit declaration of function 'kbdbuf_feed' is invalid in C99 [-Wimplicit-function-declaration] kbdbuf_feed(pstr); ^ 5 warnings generated. vicefilepanel.m:194:24: warning: sending 'VICEFilePanel *' to parameter of incompatible type 'id<NSOpenSavePanelDelegate>' [panel setDelegate:self]; ^~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:130:50: note: passing argument to parameter 'delegate' here - (void)setDelegate:(id<NSOpenSavePanelDelegate>)delegate; ^ vicefilepanel.m:224:27: warning: 'filename' is deprecated [-Wdeprecated-declarations] fileName = [panel filename]; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here - (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); ^ vicefilepanel.m:229:30: warning: comparison of constant 'NSNotFound' (9223372036854775807) with expression of type 'unsigned int' is always true [-Wtautological-constant-out-of-range-compare] if(contentsIndex != NSNotFound) { ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ vicefilepanel.m:275:23: warning: 'filename' is deprecated [-Wdeprecated-declarations] return [panel filename]; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here - (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); ^ vicefilepanel.m:291:23: warning: 'filename' is deprecated [-Wdeprecated-declarations] return [panel filename]; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here - (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); ^ vicefilepanel.m:312:23: warning: 'filename' is deprecated [-Wdeprecated-declarations] return [panel filename]; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here - (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); ^ vicefilepanel.m:330:23: warning: 'filename' is deprecated [-Wdeprecated-declarations] return [panel filename]; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here - (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); ^ vicefilepanel.m:345:23: warning: 'filename' is deprecated [-Wdeprecated-declarations] return [panel filename]; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here - (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); ^ vicefilepanel.m:382:37: warning: 'filename' is deprecated [-Wdeprecated-declarations] NSString *filename = [panel filename]; ^ /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here - (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6); ^ 9 warnings generated. Making all in dialog disassemblywindowcontroller.m:62:26: warning: sending 'DisassemblyWindowController *' to parameter of incompatible type 'id<NSMenuDelegate>' [theMenu setDelegate:self]; ^~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h:150:42: note: passing argument to parameter 'anObject' here - (void)setDelegate:(id <NSMenuDelegate>)anObject; ^ disassemblywindowcontroller.m:255:32: warning: sending 'DisassemblyWindowController *' to parameter of incompatible type 'id<NSTableViewDataSource>' [memoryTable setDataSource:self]; ^~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h:102:51: note: passing argument to parameter 'aSource' here - (void)setDataSource:(id <NSTableViewDataSource>)aSource; ^ 2 warnings generated. iotreewindowcontroller.m:62:27: warning: sending 'IOTreeWindowController *' to parameter of incompatible type 'id<NSOutlineViewDelegate>' [treeView setDelegate:self]; ^~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h:125:49: note: passing argument to parameter 'anObject' here - (void)setDelegate:(id <NSOutlineViewDelegate>)anObject; ^ iotreewindowcontroller.m:63:29: warning: sending 'IOTreeWindowController *' to parameter of incompatible type 'id<NSOutlineViewDataSource>' [treeView setDataSource:self]; ^~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h:128:53: note: passing argument to parameter 'aSource' here - (void)setDataSource:(id <NSOutlineViewDataSource>)aSource; ^ 2 warnings generated. memorywindowcontroller.m:95:32: warning: sending 'MemoryWindowController *' to parameter of incompatible type 'id<NSTableViewDataSource>' [memoryTable setDataSource:self]; ^~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h:102:51: note: passing argument to parameter 'aSource' here - (void)setDataSource:(id <NSTableViewDataSource>)aSource; ^ 1 warning generated. registerwindowcontroller.m:75:34: warning: sending 'RegisterWindowController *' to parameter of incompatible type 'id<NSTableViewDataSource>' [registerTable setDataSource:self]; ^~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h:102:51: note: passing argument to parameter 'aSource' here - (void)setDataSource:(id <NSTableViewDataSource>)aSource; ^ registerwindowcontroller.m:125:18: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] if(flags & 1 == 1) { ^~~~~~~~ registerwindowcontroller.m:125:18: note: place parentheses around the '==' expression to silence this warning if(flags & 1 == 1) { ^ ( ) registerwindowcontroller.m:125:18: note: place parentheses around the & expression to evaluate it first if(flags & 1 == 1) { ^ ( ) 2 warnings generated. resourceeditorcontroller.m:64:27: warning: sending 'ResourceEditorController *' to parameter of incompatible type 'id<NSOutlineViewDelegate>' [treeView setDelegate:self]; ^~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h:125:49: note: passing argument to parameter 'anObject' here - (void)setDelegate:(id <NSOutlineViewDelegate>)anObject; ^ resourceeditorcontroller.m:65:29: warning: sending 'ResourceEditorController *' to parameter of incompatible type 'id<NSOutlineViewDataSource>' [treeView setDataSource:self]; ^~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h:128:53: note: passing argument to parameter 'aSource' here - (void)setDataSource:(id <NSOutlineViewDataSource>)aSource; ^ 2 warnings generated. recordmediawindowcontroller.m:49:26: warning: using 'stringWithString:' with a literal is redundant [-Wobjc-redundant-literal-use] NSString *fileName = [NSString stringWithString:@"~/capture"]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. viceapplication.m:94:51: warning: 'IOTreeWindowController' may not respond to 'initWithMemSpace:' cpuIOTreeWC = [[IOTreeWindowController alloc] initWithMemSpace:e_comp_space]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 1 warning generated. vicemachine.m:232:17: warning: implicit declaration of function 'monitor_startup_trap' is invalid in C99 [-Wimplicit-function-declaration] monitor_startup_trap(); ^ 1 warning generated. video.m:48:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ video.m:137:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ video.m:210:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ video.m:383:5: warning: implicit declaration of function 'video_render_setrawalpha' is invalid in C99 [-Wimplicit-function-declaration] video_render_setrawalpha(0xff000000); ^ 4 warnings generated. Making all in platform platform_macosx.c:61:16: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] if ((err = Gestalt(gestaltSystemVersion, &systemVersion)) != noErr) { ^ /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' declared here Gestalt( ^ platform_macosx.c:76:20: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] if ((err = Gestalt(gestaltSystemVersionMajor, &versionMajor)) != noErr) { ^ /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' declared here Gestalt( ^ platform_macosx.c:79:20: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] if ((err = Gestalt(gestaltSystemVersionMinor, &versionMinor)) != noErr) { ^ /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' declared here Gestalt( ^ platform_macosx.c:82:20: warning: 'Gestalt' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations] if ((err = Gestalt(gestaltSystemVersionBugFix, &versionBugFix)) != noErr) { ^ /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h:123:1: note: 'Gestalt' declared here Gestalt( ^ 4 warnings generated. In file included from info.c:33: ./infocontrib.h:224:8: warning: illegal character encoding in string literal [-Winvalid-source-encoding] " Andr<E9> Fachat <fachat@physik.tu-chemnitz.de>\n" ^~~~ ./infocontrib.h:274:12: warning: illegal character encoding in string literal [-Winvalid-source-encoding] " Paul Dub<E9> \n" ^~~~ ./infocontrib.h:435:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding] " Frank K<F6>nig <frank_koenig@t-online.de>\n" ^~~~ ./infocontrib.h:465:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding] " Marko M<E4>kel<E4> <msmakela@gmail.com>\n" ^~~~ ~~~~ ./infocontrib.h:499:10: warning: illegal character encoding in string literal [-Winvalid-source-encoding] " Lasse <D6><F6>rni <loorni@mail.student.oulu.fi>\n" ^~~~~~~~ ./infocontrib.h:523:14: warning: illegal character encoding in string literal [-Winvalid-source-encoding] " Pablo Rold<E1>n <pdroldan@yahoo.com>\n" ^~~~ ./infocontrib.h:619:8: warning: illegal character encoding in string literal [-Winvalid-source-encoding] " Istv<E1>n F<E1>bi<E1>n\n" ^~~~ ~~~~ ~~~~ ./infocontrib.h:665:19: warning: illegal character encoding in string literal [-Winvalid-source-encoding] " Peternel, Per H<E5>kan Sundell and David Horrocks for writing\n" ^~~~ ./infocontrib.h:703:25: warning: illegal character encoding in string literal [-Winvalid-source-encoding] { "1996-2001", "Andr<E9> Fachat", "Andr<E9> Fachat <fachat@physik.tu-chemnitz.de>" }, ^~~~ ./infocontrib.h:703:41: warning: illegal character encoding in string literal [-Winvalid-source-encoding] { "1996-2001", "Andr<E9> Fachat", "Andr<E9> Fachat <fachat@physik.tu-chemnitz.de>" }, ^~~~ ./infocontrib.h:715:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding] { "2004-2015", "Paul Dub<E9>", "French", "Paul Dub<E9> " }, ^~~~ ./infocontrib.h:715:52: warning: illegal character encoding in string literal [-Winvalid-source-encoding] { "2004-2015", "Paul Dub<E9>", "French", "Paul Dub<E9> " }, ^~~~ 12 warnings generated. joystick.c:499:12: warning: implicit declaration of function 'joystick_arch_init_resources' is invalid in C99 [-Wimplicit-function-declaration] return joystick_arch_init_resources(); ^ joystick.c:562:5: warning: implicit declaration of function 'kbd_initialize_numpad_joykeys' is invalid in C99 [-Wimplicit-function-declaration] kbd_initialize_numpad_joykeys(joykeys[0]); ^ 2 warnings generated. petcat.c:1189:9: warning: unused variable 'version' [-Wunused-variable] int version = -1; ^ 1 warning generated.