mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	These types are problematic because they are typically declared in a non-standard way in U-Boot. For example, U-Boot uses 'long long' for int64_t even on a 64-bit machine whereas stdint.h uses 'long'. Similarly, U-Boot always uses 'long' for intptr_t whereas stdint.h mostly uses 'int'. This simple test script runs a few toolchains on a few archs to check for warnings. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			14 lines
		
	
	
		
			263 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			263 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <common.h>
 | |
| #include <inttypes.h>
 | |
| 
 | |
| int test_types(void)
 | |
| {
 | |
| 	uintptr_t uintptr = 0;
 | |
| 	uint64_t uint64 = 0;
 | |
| 	u64 u64_val = 0;
 | |
| 
 | |
| 	printf("uintptr = %" PRIuPTR "\n", uintptr);
 | |
| 	printf("uint64 = %" PRIu64 "\n", uint64);
 | |
| 	printf("u64 = %" PRIu64 "\n", u64_val);
 | |
| }
 |