Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build With LLVM 4.0 will has error #5

Closed
GoogleCodeExporter opened this issue May 28, 2015 · 1 comment
Closed

Build With LLVM 4.0 will has error #5

GoogleCodeExporter opened this issue May 28, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. download gdata-objectivec-client r726
2. build it 
3. get error on build result

What is the expected output? What do you see instead?

src/gdata-objectivec-client-read-only-svn/Source/HTTPFetcher/GTMHTTPUploadFetche
r.m:463:55: error: format specifies type 'unsigned long' but the argument has 
type 'NSUInteger' (aka 'unsigned int') [-Werror,-Wformat]
    rangeStr = [NSString stringWithFormat:@"bytes */%lu", dataLen];
                                                    ~~^   ~~~~~~~
                                                    %u
src/gdata-objectivec-client-read-only-svn/Source/HTTPFetcher/GTMHTTPUploadFetche
r.m:469:44: error: format specifies type 'unsigned long' but the argument has 
type 'NSUInteger' (aka 'unsigned int') [-Werror,-Wformat]
    NSAssert2(offset < dataLen, @"offset %lu exceeds data length %lu",
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExce
ption.h:135:71: note: expanded from macro 'NSAssert2'
#define NSAssert2(condition, desc, arg1, arg2) NSAssert((condition), (desc), 
(arg1), (arg2))
                                                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExce
ption.h:102:40: note: expanded from macro 'NSAssert'
                lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; \
                                                 ^        ~~~~~~~~~~~
src/gdata-objectivec-client-read-only-svn/Source/HTTPFetcher/GTMHTTPUploadFetche
r.m:469:68: error: format specifies type 'unsigned long' but the argument has 
type 'NSUInteger' (aka 'unsigned int') [-Werror,-Wformat]
    NSAssert2(offset < dataLen, @"offset %lu exceeds data length %lu",
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExce
ption.h:135:71: note: expanded from macro 'NSAssert2'
#define NSAssert2(condition, desc, arg1, arg2) NSAssert((condition), (desc), 
(arg1), (arg2))
                                                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExce
ption.h:102:40: note: expanded from macro 'NSAssert'
                lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; \
                                                 ^        ~~~~~~~~~~~
src/gdata-objectivec-client-read-only-svn/Source/HTTPFetcher/GTMHTTPUploadFetche
r.m:489:53: error: format specifies type 'unsigned long' but the argument has 
type 'NSUInteger' (aka 'unsigned int') [-Werror,-Wformat]
    rangeStr = [NSString stringWithFormat:@"bytes %lu-%lu/%lu",
                                                  ~~^
                                                  %u
src/gdata-objectivec-client-read-only-svn/Source/HTTPFetcher/GTMHTTPUploadFetche
r.m:489:57: error: format specifies type 'unsigned long' but the argument has 
type 'unsigned int' [-Werror,-Wformat]
    rangeStr = [NSString stringWithFormat:@"bytes %lu-%lu/%lu",
                                                      ~~^
                                                      %u
src/gdata-objectivec-client-read-only-svn/Source/HTTPFetcher/GTMHTTPUploadFetche
r.m:489:61: error: format specifies type 'unsigned long' but the argument has 
type 'NSUInteger' (aka 'unsigned int') [-Werror,-Wformat]
    rangeStr = [NSString stringWithFormat:@"bytes %lu-%lu/%lu",
                                                          ~~^
                                                          %u
src/gdata-objectivec-client-read-only-svn/Source/HTTPFetcher/GTMHTTPUploadFetche
r.m:491:48: error: format specifies type 'unsigned long' but the argument has 
type 'NSUInteger' (aka 'unsigned int') [-Werror,-Wformat]
    lengthStr = [NSString stringWithFormat:@"%lu", thisChunkSize];
                                             ~~^   ~~~~~~~~~~~~~
                                             %u
src/gdata-objectivec-client-read-only-svn/Source/HTTPFetcher/GTMHTTPUploadFetche
r.m:728:65: error: format specifies type 'unsigned long' but the argument has 
type 'NSUInteger' (aka 'unsigned int') [-Werror,-Wformat]
    NSString *rangeStr = [NSString stringWithFormat:@"bytes */%lu", dataLen];
                                                              ~~^   ~~~~~~~
                                                              %u
8 errors generated.

What version of the product are you using? On what operating system?

OS: Mac OSX 10.8
Xcode 4.4, LLVM 4.0

Please provide any additional information below.

I got this error on new llvm compiler, use gcc 4.2 will pass it.

It is some about string format error.

Original issue reported on code.google.com by superbil on 27 Jul 2012 at 5:16

@GoogleCodeExporter
Copy link
Author

Thank you for the issue report. Updates to the project to resolve the compiler 
warnings are now checked in.

http://code.google.com/p/gtm-http-fetcher/source/detail?r=105

Original comment by grobb...@google.com on 28 Jul 2012 at 1:07

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant