Skip to content

Commit e89684a

Browse files
authored
Merge pull request #62 from capnramses/missing-main-args
Missing main args for CI/CD clang tests
2 parents 962d8d1 + 8f2fd4f commit e89684a

File tree

92 files changed

+120
-120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+120
-120
lines changed

00_hello_triangle/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <GLFW/glfw3.h> /* GLFW helper library */
1818
#include <stdio.h>
1919

20-
int main() {
20+
int main( void ) {
2121
GLFWwindow* window = NULL;
2222
const GLubyte* renderer;
2323
const GLubyte* version;
@@ -32,17 +32,17 @@ int main() {
3232
const char* vertex_shader =
3333
"#version 410\n"
3434
"in vec3 vp;"
35-
"void main () {"
36-
" gl_Position = vec4(vp, 1.0);"
35+
"void main() {"
36+
" gl_Position = vec4( vp, 1.0 );"
3737
"}";
3838

3939
/* the fragment shader colours each fragment (pixel-sized area of the
4040
triangle) */
4141
const char* fragment_shader =
4242
"#version 410\n"
4343
"out vec4 frag_colour;"
44-
"void main () {"
45-
" frag_colour = vec4(0.5, 0.0, 0.5, 1.0);"
44+
"void main() {"
45+
" frag_colour = vec4( 0.5, 0.0, 0.5, 1.0 );"
4646
"}";
4747

4848
/* GL shader objects for vertex and fragment shader [components] */

00_hello_triangle_gl2.1/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <GLFW/glfw3.h> /* GLFW helper library */
1717
#include <stdio.h>
1818

19-
int main() {
19+
int main( void ) {
2020
GLFWwindow* window = NULL;
2121
const GLubyte* renderer;
2222
const GLubyte* version;
@@ -31,15 +31,15 @@ int main() {
3131
const char* vertex_shader =
3232
"#version 120\n"
3333
"attribute vec3 vp;"
34-
"void main () {"
35-
" gl_Position = vec4 (vp, 1.0);"
34+
"void main() {"
35+
" gl_Position = vec4( vp, 1.0 );"
3636
"}";
3737
/* the fragment shader colours each fragment (pixel-sized area of the
3838
triangle) */
3939
const char* fragment_shader =
4040
"#version 120\n"
41-
"void main () {"
42-
" gl_FragColor = vec4 (0.5, 0.0, 0.5, 1.0);"
41+
"void main() {"
42+
" gl_FragColor = vec4( 0.5, 0.0, 0.5, 1.0 );"
4343
"}";
4444
/* GL shader objects for vertex and fragment shader [components] */
4545
GLuint vs, fs;

01_extended_init/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void _update_fps_counter( GLFWwindow* window ) {
159159
frame_count++;
160160
}
161161

162-
int main() {
162+
int main( void ) {
163163
GLFWwindow* window;
164164
const GLubyte* renderer;
165165
const GLubyte* version;

02_shaders/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ bool parse_file_into_str( const char* file_name, char* shader_str, int max_len )
167167
return true;
168168
}
169169

170-
int main() {
170+
int main( void ) {
171171
GLfloat points[] = { 0.0f, 0.5f, 0.0f, 0.5f, -0.5f, 0.0f, -0.5f, -0.5f, 0.0f };
172172
GLuint vbo;
173173
GLuint vao;

03_vertex_buffer_objects/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int g_gl_width = 640;
2424
int g_gl_height = 480;
2525
GLFWwindow* g_window = NULL;
2626

27-
int main() {
27+
int main( void ) {
2828
restart_gl_log();
2929
// all the start-up code for GLFW and GLEW is called here
3030
start_gl();

04_mats_and_vecs/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int g_gl_width = 640;
2727
int g_gl_height = 480;
2828
GLFWwindow* g_window = NULL;
2929

30-
int main() {
30+
int main( void ) {
3131
restart_gl_log();
3232
// all the GLFW and GLEW start-up code is moved to here in gl_utils.cpp
3333
start_gl();

05_virtual_camera/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int g_gl_width = 640;
2828
int g_gl_height = 480;
2929
GLFWwindow* g_window = NULL;
3030

31-
int main() {
31+
int main( void ) {
3232
restart_gl_log();
3333
/*------------------------------start GL context------------------------------*/
3434
start_gl();

06_vcam_with_quaternion/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ vec3 cam_pos( 0.0f, 0.0f, 5.0f );
104104
// a world position for each sphere in the scene
105105
vec3 sphere_pos_wor[] = { vec3( -2.0, 0.0, 0.0 ), vec3( 2.0, 0.0, 0.0 ), vec3( -2.0, 0.0, -2.0 ), vec3( 1.5, 1.0, -1.0 ) };
106106

107-
int main() {
107+
int main( void ) {
108108
/*--------------------------------START OPENGL--------------------------------*/
109109
restart_gl_log();
110110
// start GL context and O/S window using the GLFW helper library

07_ray_picking/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void update_perspective() {
125125
proj_mat = perspective( fovy, aspect, near, far );
126126
}
127127

128-
int main() {
128+
int main( void ) {
129129
/*--------------------------------START OPENGL--------------------------------*/
130130
restart_gl_log();
131131
// start GL context and O/S window using the GLFW helper library

08_phong/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int g_gl_width = 640;
2828
int g_gl_height = 480;
2929
GLFWwindow* g_window = NULL;
3030

31-
int main() {
31+
int main( void ) {
3232
restart_gl_log();
3333
// start GL context and O/S window using the GLFW helper library
3434
start_gl();

0 commit comments

Comments
 (0)