Skip to content

Commit 3f683ea

Browse files
committed
Fix GCC Warning
1 parent 633a96c commit 3f683ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/C/virtual_file_system/vfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ bool virtual_file_system(const char* path, const unsigned char** file, int* leng
4444
return false;
4545
}
4646

47-
void* vfs(const char* path, int* length) {
47+
const void* vfs(const char* path, int* length) {
4848
const unsigned char* file_data;
4949
int file_length;
5050

examples/C/virtual_file_system/vfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def generate_vfs_header(directory, output_header):
6363
header.write(' return false;\n')
6464
header.write('}\n\n')
6565

66-
header.write('void* vfs(const char* path, int* length) {\n')
66+
header.write('const void* vfs(const char* path, int* length) {\n')
6767
header.write(' const unsigned char* file_data;\n')
6868
header.write(' int file_length;\n\n')
6969

0 commit comments

Comments
 (0)