mirror of
https://github.com/simon987/sist2.git
synced 2025-04-20 02:36:43 +00:00
Errors cleanup
This commit is contained in:
parent
ccccdb3b78
commit
6e5772f13b
@ -87,6 +87,7 @@ target_compile_options(
|
|||||||
sist2
|
sist2
|
||||||
PRIVATE
|
PRIVATE
|
||||||
-fPIC
|
-fPIC
|
||||||
|
-Werror
|
||||||
)
|
)
|
||||||
|
|
||||||
if (SIST_DEBUG)
|
if (SIST_DEBUG)
|
||||||
|
@ -70,6 +70,6 @@
|
|||||||
#include "web/serve.h"
|
#include "web/serve.h"
|
||||||
#include "web/auth_basic.h"
|
#include "web/auth_basic.h"
|
||||||
|
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -244,8 +244,8 @@ static void text_buffer_terminate_string(text_buffer_t *buf) {
|
|||||||
__always_inline
|
__always_inline
|
||||||
static int text_buffer_append_string(text_buffer_t *buf, const char *str, size_t len) {
|
static int text_buffer_append_string(text_buffer_t *buf, const char *str, size_t len) {
|
||||||
|
|
||||||
char *ptr = str;
|
const char *ptr = str;
|
||||||
char *oldPtr = ptr;
|
const char *oldPtr = ptr;
|
||||||
|
|
||||||
if (str == NULL || UTF8_END_OF_STRING) {
|
if (str == NULL || UTF8_END_OF_STRING) {
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user