summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/codeql-analysis.yml22
-rw-r--r--src/cpp-flex.skl2
2 files changed, 16 insertions, 8 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 77d7630..98205d6 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -38,9 +38,11 @@ jobs:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
steps:
+ - name: Apt
+ run: sudo apt-get install gcc autoconf bison gettext autopoint help2man lzip texinfo texlive
- name: Checkout repository
uses: actions/checkout@v2
-/b
+
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
@@ -50,7 +52,13 @@ jobs:
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
-
+
+ # Autobuild expects to start by running configure.
+ # Run autogen.sh to ensure configure exists.
+ - name: Autogen
+ run: |
+ ./autogen.sh
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
@@ -59,13 +67,13 @@ jobs:
# ℹī¸ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
- # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines
+ # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following four lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
-
- #- run: |
- # make bootstrap
- # make release
+ #- name: Build
+ # run: |
+ # ./configure
+ # make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
diff --git a/src/cpp-flex.skl b/src/cpp-flex.skl
index 25e4327..0941d4d 100644
--- a/src/cpp-flex.skl
+++ b/src/cpp-flex.skl
@@ -2398,7 +2398,7 @@ int yyFlexLexer::LexerInput( char* buf, int max_size )
if ( yyin.bad() ) {
return -1;
} else {
- return yyin.gcount();
+ return (int)yyin.gcount();
}
#endif
}