mirror of
				https://github.com/GrapheneOS/hardened_malloc.git
				synced 2025-10-29 23:36:32 +01:00 
			
		
		
		
	Fix two mundane clang warnings in the testsuite
This commit is contained in:
		
							parent
							
								
									ffdf7b1ee1
								
							
						
					
					
						commit
						c5be4b1888
					
				
					 2 changed files with 6 additions and 4 deletions
				
			
		|  | @ -1,9 +1,10 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| 
 | 
 | ||||||
|  | #include "../test_util.h" | ||||||
|  | 
 | ||||||
| size_t malloc_object_size(void *ptr); | size_t malloc_object_size(void *ptr); | ||||||
| 
 | 
 | ||||||
| __attribute__((optimize(0))) | OPTNONE int main(void) { | ||||||
| int main() { |  | ||||||
|     char *p = malloc(16); |     char *p = malloc(16); | ||||||
|     if (!p) { |     if (!p) { | ||||||
|         return 1; |         return 1; | ||||||
|  |  | ||||||
|  | @ -1,9 +1,10 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| 
 | 
 | ||||||
|  | #include "../test_util.h" | ||||||
|  | 
 | ||||||
| size_t malloc_object_size(void *ptr); | size_t malloc_object_size(void *ptr); | ||||||
| 
 | 
 | ||||||
| __attribute__((optimize(0))) | OPTNONE int main(void) { | ||||||
| int main() { |  | ||||||
|     void *p = malloc(16); |     void *p = malloc(16); | ||||||
|     if (!p) { |     if (!p) { | ||||||
|         return 1; |         return 1; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue