Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: test/rules/src/subdir4/program.c

Issue 316163002: Remove unused parameters from test code. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Use int main(void) instead Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/rules/src/subdir3/program.c ('k') | test/same-source-file-name/src/prog1.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <stdio.h> 1 #include <stdio.h>
2 2
3 // Use the assembly function in linux and mac where it is built. 3 // Use the assembly function in linux and mac where it is built.
4 #if PLATFORM_LINUX || PLATFORM_MAC 4 #if PLATFORM_LINUX || PLATFORM_MAC
5 extern int asm_function(void); 5 extern int asm_function(void);
6 #else 6 #else
7 int asm_function() { 7 int asm_function() {
8 return 41; 8 return 41;
9 } 9 }
10 #endif 10 #endif
11 11
12 int main(int argc, char *argv[]) 12 int main(void)
13 { 13 {
14 fprintf(stdout, "Hello from program.c\n"); 14 fprintf(stdout, "Hello from program.c\n");
15 fflush(stdout); 15 fflush(stdout);
16 fprintf(stdout, "Got %d.\n", asm_function()); 16 fprintf(stdout, "Got %d.\n", asm_function());
17 fflush(stdout); 17 fflush(stdout);
18 return 0; 18 return 0;
19 } 19 }
OLDNEW
« no previous file with comments | « test/rules/src/subdir3/program.c ('k') | test/same-source-file-name/src/prog1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698