Skip to content

Commit b58c93e

Browse files
committed
add more strict CXX options
1 parent 5da1eb1 commit b58c93e

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required (VERSION 3.0)
22
project (libunikey)
33

4-
add_compile_options(-std=c++11 -Werror)
4+
add_compile_options(-std=c++11 -Werror -Wall -pedantic)
55

66
add_subdirectory(ukengine)
77
add_subdirectory(src)

src/unikey.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ void SimpleUnikey::process_backspace() {
100100
}
101101

102102
void SimpleUnikey::process(std::string const& str) {
103-
UkOutputType oType;
104-
for (int i = 0; i < str.length(); i++) {
103+
for (unsigned int i = 0; i < str.length(); i++) {
105104
process(str[i]);
106105
}
107106
}

src/unikey.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <string>
55

66
class UkEngine;
7-
class UkSharedMem;
7+
struct UkSharedMem;
88

99
namespace unikey {
1010

ukengine/byteio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ int StringBIStream::gotoBookmark()
155155
int StringBIStream::close()
156156
{
157157
return 1;
158-
};
158+
}
159159

160160
//////////////////////////////////////////////////
161161
// Class StringBOStream

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy