ref: 217fef8595e581b4d74603a1d9de5902d774db43
parent: 1d3985c106d822ec1af9a008ddd39ad09f1daf6a
author: MHS <gek@katherine>
date: Tue Mar 16 07:55:21 EDT 2021
Automatic commit.
--- a/config.mk
+++ b/config.mk
@@ -5,7 +5,7 @@
#CFLAGS= -Wall -w -O3 -g -std=c99 -mtune=native -DNDEBUG
#CFLAGS= -Wall -w -O3 -g -std=c99 -march=native -DNDEBUG
-CFLAGS= -Wall -O3 -std=gnu99 -DNDEBUG -g -fopenmp -Wno-uninitialized
+CFLAGS= -Wall -O3 -std=gnu99 -mtune=native -DNDEBUG -g -fopenmp -Wno-uninitialized
#CFLAGS= -Wall -O3 -std=gnu99 -DNDEBUG -g -Wno-uninitialized
#CFLAGS= -Wall -O1 -g -std=c99 -Wno-undef -DNDEBUG
LFLAGS=
--- a/src/init.c
+++ b/src/init.c
@@ -3,7 +3,7 @@
GLContext gl_ctx;
static const GLContext empty_gl_ctx = {0};
-void initSharedState(GLContext* c) {
+static void initSharedState(GLContext* c) {
GLSharedState* s = &c->shared_state;
s->lists = gl_zalloc(sizeof(GLList*) * MAX_DISPLAY_LISTS);
if(!s->lists)
@@ -18,7 +18,7 @@
#include "error_check.h"
}
-void endSharedState(GLContext* c) {
+static void endSharedState(GLContext* c) {
GLSharedState* s = &c->shared_state;
GLint i;
GLList* l;
@@ -71,7 +71,7 @@
#define TGL_RUNT_UNION_CAST(i) ((union{GLuint l; GLint ii; GLfloat f;}){i})
#define TGL_FLOAT_ERR(a,b) ((a-b)/b)
-int TinyGLRuntimeCompatibilityTest(){
+static int TinyGLRuntimeCompatibilityTest(){
GLfloat t = -0, tf2;
GLint t2 = 1<<31;
if(TGL_RUNT_UNION_CAST(t2).f != t)